xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hardc0d3r <hardc0...@gmail.com>
Subject Re: how to determine if the canvas has been moved/zoomed
Date Thu, 20 Sep 2007 05:38:29 GMT

i tried adding an onzzom function but i cant make it work..

            EventTarget t = (EventTarget)svgRoot;
            t.addEventListener("onzoom", new OnZoomAction(), false);
            t.addEventListener("onscroll", new OnScrollAction(), false);

    
    private class OnZoomAction implements EventListener {
        public void handleEvent(Event evt) {
            System.out.println("ZOOM ZOOM!!");
        }
    }
    
    private class OnScrollAction implements EventListener {
        public void handleEvent(Event evt) {
            System.out.println("SCROOOOOLLLLL!!");
        }
    }

nothing happens.. it does not print anything..
-- 
View this message in context: http://www.nabble.com/how-to-determine-if-the-canvas-has-been-moved-zoomed-tf4428019.html#a12791224
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message