Examples of clearLiveMouseHandler()


Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

     */
    @Override
    public void mouseDragged(MouseEvent e) {
        ChartPanel panel = (ChartPanel) e.getSource();
        if (this.startPoint == null) {
            panel.clearLiveMouseHandler();
            return; // we never started a selection
        }
        Point pt = e.getPoint();
        Point2D pt2 = ShapeUtils.getPointInRectangle(pt.x, pt.y,
                panel.getScreenDataArea());
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

     */
    @Override
    public void mouseReleased(MouseEvent e) {
        ChartPanel panel = (ChartPanel) e.getSource();
        if (this.startPoint == null) {
            panel.clearLiveMouseHandler();
            return; // we never started a selection
        }
        SelectionManager selectionManager = panel.getSelectionManager();

        // do something with the selection shape
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

            this.zoomPoint = ShapeUtils.getPointInRectangle(e.getX(),
                    e.getY(), screenDataArea);
        }
        else {
            this.zoomPoint = null;
            chartPanel.clearLiveMouseHandler();
        }
    }

    @Override
    public void mouseDragged(MouseEvent e) {
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

    public void mouseDragged(MouseEvent e) {
        ChartPanel panel = (ChartPanel) e.getSource();
        if (this.zoomPoint == null) {
            //no initial zoom rectangle exists but the handler is set
            //as life handler unregister
            panel.clearLiveMouseHandler();
            return;
        }

        Graphics2D g2 = (Graphics2D) panel.getGraphics();
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

        ChartPanel panel = (ChartPanel) e.getSource();
       
        if (this.zoomRectangle == null) {
            //no initial zoom rectangle exists but the handler is set
            //as life handler unregister
            panel.clearLiveMouseHandler();
            return;
        }
       
        boolean hZoom, vZoom;
        if (panel.getOrientation() == PlotOrientation.HORIZONTAL) {
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

                panel.zoom(zoomArea);
            }
            this.zoomPoint = null;
            this.zoomRectangle = null;
            panel.setZoomRectangle(null);
            panel.clearLiveMouseHandler();
        }
        else {
            // erase the zoom rectangle
            Graphics2D g2 = (Graphics2D) panel.getGraphics();
            if (panel.getUseBuffer()) {
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

            }
            g2.dispose();
            this.zoomPoint = null;
            this.zoomRectangle = null;
            panel.setZoomRectangle(null);
            panel.clearLiveMouseHandler();
        }
    }

    /**
     * Draws zoom rectangle (if present).
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

    @Override
    public void mousePressed(MouseEvent e) {
        ChartPanel panel = (ChartPanel) e.getSource();
        Plot plot = panel.getChart().getPlot();
        if (!(plot instanceof Pannable)) {
            panel.clearLiveMouseHandler();
            return// there's nothing for us to do (except unregistering)
        }
        Pannable pannable = (Pannable) plot;
        if (pannable.isDomainPannable() || pannable.isRangePannable()) {
            Rectangle2D screenDataArea = panel.getScreenDataArea(e.getX(),
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

    public void mouseDragged(MouseEvent e) {
        ChartPanel panel = (ChartPanel) e.getSource();

        if (this.panLast == null) {
            //handle panning if we have a start point else unregister
            panel.clearLiveMouseHandler();
            return;
        }

        JFreeChart chart = panel.getChart();
        double dx = e.getX() - this.panLast.getX();
View Full Code Here

Examples of org.jfree.chart.ChartPanel.clearLiveMouseHandler()

        //unregister in any case
        if (this.panLast != null) {
            panel.setCursor(Cursor.getDefaultCursor());
        }
        this.panLast = null;
        panel.clearLiveMouseHandler();
    }

    /**
     * @see AbstractMouseHandler#isLiveHandler()
     */
 
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.