Examples of Zoomable


Examples of org.jfree.chart.plot.Zoomable

         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;
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

      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

      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

   {
      this.refreshBuffer = true;
      Plot plot = this.chart.getPlot();
      if (plot instanceof Zoomable)
      {
         Zoomable z = (Zoomable) plot;
         this.orientation = z.getOrientation();
      }
      repaint();
   }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

         // 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);
         Zoomable z = (Zoomable) plot;
         z.zoomDomainAxes(this.zoomInFactor, this.info.getPlotInfo(),
                 translateScreenToJava2D(new Point((int) x, (int) y)),
                 this.zoomAroundAnchor);
         plot.setNotify(savedNotify);
      }
   }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

         // 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);
         Zoomable z = (Zoomable) plot;
         z.zoomRangeAxes(this.zoomInFactor, this.info.getPlotInfo(),
                 translateScreenToJava2D(new Point((int) x, (int) y)),
                 this.zoomAroundAnchor);
         plot.setNotify(savedNotify);
      }
   }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

         // 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);
         Zoomable z = (Zoomable) plot;
         z.zoomDomainAxes(this.zoomOutFactor, this.info.getPlotInfo(),
                 translateScreenToJava2D(new Point((int) x, (int) y)),
                 this.zoomAroundAnchor);
         plot.setNotify(savedNotify);
      }
   }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

         // 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);
         Zoomable z = (Zoomable) plot;
         z.zoomRangeAxes(this.zoomOutFactor, this.info.getPlotInfo(),
                 translateScreenToJava2D(new Point((int) x, (int) y)),
                 this.zoomAroundAnchor);
         plot.setNotify(savedNotify);
      }
   }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

            // here we tweak the notify flag on the plot so that only
            // one notification happens even though we update multiple
            // axes...
            boolean savedNotify = p.isNotify();
            p.setNotify(false);
            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);
            }
            p.setNotify(savedNotify);
         }

      }
View Full Code Here

Examples of org.jfree.chart.plot.Zoomable

   public void restoreAutoDomainBounds()
   {
      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.zoomDomainAxes(0.0, this.info.getPlotInfo(), zp);
         plot.setNotify(savedNotify);
      }
   }
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.