Examples of PanHandler


Examples of org.jfree.chart.panel.PanHandler

        this.availableLiveMouseHandlers = new ArrayList<AbstractMouseHandler>();

        this.zoomHandler = new ZoomHandler();
        this.availableLiveMouseHandlers.add(zoomHandler);

        PanHandler panHandler = new PanHandler();
        int panMask = InputEvent.CTRL_MASK;
        // for MacOSX we can't use the CTRL key for mouse drags, see:
        // http://developer.apple.com/qa/qa2004/qa1362.html
        String osName = System.getProperty("os.name").toLowerCase();
        if (osName.startsWith("mac os x")) {
            panMask = InputEvent.ALT_MASK;
        }
        panHandler.setModifier(panMask);
        this.availableLiveMouseHandlers.add(panHandler);
        this.auxiliaryMouseHandlers = new ArrayList<AbstractMouseHandler>();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.