Package org.jfree.chart.plot

Examples of org.jfree.chart.plot.Zoomable.zoomRangeAxes()


            if ((hZoom && (e.getX() < this.startPoint.getX()))
                    || (vZoom && (e.getY() < this.startPoint.getY()))) {
                boolean saved = p.isNotify();
                p.setNotify(false);
                z.zoomDomainAxes(0, pri, endPoint);
                z.zoomRangeAxes(0, pri, endPoint);
                p.setNotify(saved);
            } else {
                double x = this.startPoint.getX();
                double y = this.startPoint.getY();
                double w = e.getX() - x;
View Full Code Here


                double ph1 = percentH(y + h, dataArea);
                PlotRenderingInfo info
                        = this.viewer.getRenderingInfo().getPlotInfo();
                if (z.getOrientation().isVertical()) {
                    z.zoomDomainAxes(pw0, pw1, info, endPoint);
                    z.zoomRangeAxes(1 - ph1, 1 - ph0, info, endPoint);
                } else {
                    z.zoomRangeAxes(pw0, pw1, info, endPoint);
                    z.zoomDomainAxes(1 - ph1, 1 - ph0, info, endPoint);
                }
                p.setNotify(saved);
View Full Code Here

                        = this.viewer.getRenderingInfo().getPlotInfo();
                if (z.getOrientation().isVertical()) {
                    z.zoomDomainAxes(pw0, pw1, info, endPoint);
                    z.zoomRangeAxes(1 - ph1, 1 - ph0, info, endPoint);
                } else {
                    z.zoomRangeAxes(pw0, pw1, info, endPoint);
                    z.zoomDomainAxes(1 - ph1, 1 - ph0, info, endPoint);
                }
                p.setNotify(saved);
               
            }
View Full Code Here

     */
    public void zoomInRange(double x, double y) {
        Plot p = this.chart.getPlot();
        if (p instanceof Zoomable) {
            Zoomable z = (Zoomable) p;
            z.zoomRangeAxes(
                this.zoomInFactor, this.info.getPlotInfo(),
                translateScreenToJava2D(new Point((int) x, (int) y))
            );
        }
    }
View Full Code Here

     */
    public void zoomOutRange(double x, double y) {
        Plot p = this.chart.getPlot();
        if (p instanceof Zoomable) {
            Zoomable z = (Zoomable) p;
            z.zoomRangeAxes(
                this.zoomOutFactor, this.info.getPlotInfo(),
                translateScreenToJava2D(new Point((int) x, (int) y))
            );
        }
    }
View Full Code Here

            Plot p = this.chart.getPlot();
            if (p instanceof Zoomable) {
                Zoomable z = (Zoomable) p;
                if (z.getOrientation() == PlotOrientation.HORIZONTAL) {
                    z.zoomDomainAxes(vLower, vUpper, plotInfo, selectOrigin);
                    z.zoomRangeAxes(hLower, hUpper, plotInfo, selectOrigin);
                }
                else {
                    z.zoomDomainAxes(hLower, hUpper, plotInfo, selectOrigin);
                    z.zoomRangeAxes(vLower, vUpper, plotInfo, selectOrigin);
                }
View Full Code Here

                    z.zoomDomainAxes(vLower, vUpper, plotInfo, selectOrigin);
                    z.zoomRangeAxes(hLower, hUpper, plotInfo, selectOrigin);
                }
                else {
                    z.zoomDomainAxes(hLower, hUpper, plotInfo, selectOrigin);
                    z.zoomRangeAxes(vLower, vUpper, plotInfo, selectOrigin);
                }
            }

        }
View Full Code Here

     */
    public void restoreAutoRangeBounds() {
        Plot p = this.chart.getPlot();
        if (p instanceof ValueAxisPlot) {
            Zoomable z = (Zoomable) p;
            z.zoomRangeAxes(0.0, this.info.getPlotInfo(), this.zoomPoint);
        }
    }

    /**
     * Returns the data area for the chart (the area inside the axes) with the
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.