Examples of Pannable


Examples of org.jfree.chart.plot.Pannable

        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(),
                    e.getY());
            if (screenDataArea != null && screenDataArea.contains(
                    e.getPoint())) {
                this.panW = screenDataArea.getWidth();
View Full Code Here

Examples of org.jfree.chart.plot.Pannable

        }
        double wPercent = -dx / this.panW;
        double hPercent = dy / this.panH;
        boolean old = chart.getPlot().isNotify();
        chart.getPlot().setNotify(false);
        Pannable p = (Pannable) chart.getPlot();
        PlotRenderingInfo info = panel.getChartRenderingInfo().getPlotInfo();
        if (p.getOrientation() == PlotOrientation.VERTICAL) {
            p.panDomainAxes(wPercent, info, this.panLast);
            p.panRangeAxes(hPercent, info, this.panLast);
        }
        else {
            p.panDomainAxes(hPercent, info, this.panLast);
            p.panRangeAxes(wPercent, info, this.panLast);
        }
        this.panLast = e.getPoint();
        chart.getPlot().setNotify(old);
    }
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.