xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raf...@blueyonder.co.uk
Subject Customizimg zoomInteractor
Date Sun, 09 Apr 2006 16:13:25 GMT

Hi there,

I'm trying to customize the zoomInteractor so that I can add my own button
to it, below is a snippet of my code, I have a button 'select' - so when a
user clicks this, it provokes the Interactor, but Im not sure how to
actually link this button to zoomInteractor2 ...can someone pls help

JButton select = new JButton(new ImageIcon("C:/selection3.gif"));

 protected Interactor zoomInteractor2 = new AbstractZoomInteractor() {
        public boolean startInteraction(InputEvent ie) {
            int mods = ie.getModifiers();
                ie.getID() == MouseEvent.MOUSE_PRESSED &&
                (mods & InputEvent.BUTTON1_MASK) != 0;




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

View raw message