Examples of Zoomable


Examples of org.jfree.chart.plot.Zoomable

   public void restoreAutoRangeBounds()
   {
      Plot plot = this.chart.getPlot();
      if (plot instanceof Zoomable)
      {
         Zoomable z = (Zoomable) plot;
         // here we tweak the notify flag on the plot so that only
         // one notification happens even though we update multiple
         // axes...
         boolean savedNotify = plot.isNotify();
         plot.setNotify(false);
         // we need to guard against this.zoomPoint being null
         Point2D zp = (this.zoomPoint != null
                 ? this.zoomPoint : new Point());
         z.zoomRangeAxes(0.0, this.info.getPlotInfo(), zp);
         plot.setNotify(savedNotify);
      }
   }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

      boolean isDomainZoomable = false;
      boolean isRangeZoomable = false;
      Plot plot = (this.chart != null ? this.chart.getPlot() : null);
      if (plot instanceof Zoomable)
      {
         Zoomable z = (Zoomable) plot;
         isDomainZoomable = z.isDomainZoomable();
         isRangeZoomable = z.isRangeZoomable();
      }

      if (this.zoomInDomainMenuItem != null)
      {
         this.zoomInDomainMenuItem.setEnabled(isDomainZoomable);
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

        if (chart == null) {
            return;
        }
        Plot plot = chart.getPlot();
        if (plot instanceof Zoomable) {
            Zoomable zoomable = (Zoomable) plot;
            handleZoomable(zoomable, e);
        }
        else if (plot instanceof PiePlot) {
            PiePlot pp = (PiePlot) plot;
            pp.handleMouseWheelRotation(e.getWheelRotation());
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

            this.chart.addProgressListener(this);
            Plot plot = chart.getPlot();
            this.domainZoomable = false;
            this.rangeZoomable = false;
            if (plot instanceof Zoomable) {
                Zoomable z = (Zoomable) plot;
                this.domainZoomable = z.isDomainZoomable();
                this.rangeZoomable = z.isRangeZoomable();
                this.orientation = z.getOrientation();
            }
        }
        else {
            this.domainZoomable = false;
            this.rangeZoomable = false;
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

     */
    public void setDomainZoomable(boolean flag) {
        if (flag) {
            Plot plot = this.chart.getPlot();
            if (plot instanceof Zoomable) {
                Zoomable z = (Zoomable) plot;
                this.domainZoomable = flag && (z.isDomainZoomable());
            }
        }
        else {
            this.domainZoomable = false;
        }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

     */
    public void setRangeZoomable(boolean flag) {
        if (flag) {
            Plot plot = this.chart.getPlot();
            if (plot instanceof Zoomable) {
                Zoomable z = (Zoomable) plot;
                this.rangeZoomable = flag && (z.isRangeZoomable());
            }
        }
        else {
            this.rangeZoomable = false;
        }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

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

Examples of org.jfree.chart.plot.Zoomable

     * @param y  the y coordinate (in screen coordinates).
     */
    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

Examples of org.jfree.chart.plot.Zoomable

     * @param y  the y-coordinate (in screen coordinates).
     */
    public void zoomOutDomain(double x, double y) {
        Plot p = this.chart.getPlot();
        if (p instanceof Zoomable) {
            Zoomable z = (Zoomable) p;
            z.zoomDomainAxes(this.zoomOutFactor, this.info.getPlotInfo(),
                    translateScreenToJava2D(new Point((int) x, (int) y)));
        }
    }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

     * @param y  the y-coordinate (in screen coordinates).
     */
    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
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.