Examples of Plot


Examples of org.jfree.chart.plot.Plot

    */
   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());
         }
View Full Code Here

Examples of org.jfree.chart.plot.Plot

    */
   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());
         }
View Full Code Here

Examples of org.jfree.chart.plot.Plot

    */
   @Override
   public void chartChanged(ChartChangeEvent event)
   {
      this.refreshBuffer = true;
      Plot plot = this.chart.getPlot();
      if (plot instanceof Zoomable)
      {
         Zoomable z = (Zoomable) plot;
         this.orientation = z.getOrientation();
      }
View Full Code Here

Examples of org.jfree.chart.plot.Plot

   {
      if (this.chart == null)
      {
         return;
      }
      Plot plot = this.chart.getPlot();
      int mods = e.getModifiers();
      if ((mods & this.panMask) == this.panMask)
      {
         // can we pan this plot?
         if (plot instanceof Pannable)
View Full Code Here

Examples of org.jfree.chart.plot.Plot

    * @param x the x value (in screen coordinates).
    * @param y the y value (in screen coordinates).
    */
   public void zoomInBoth(double x, double y)
   {
      Plot plot = this.chart.getPlot();
      if (plot == null)
      {
         return;
      }
      // 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);
      zoomInDomain(x, y);
      zoomInRange(x, y);
      plot.setNotify(savedNotify);
   }
View Full Code Here

Examples of org.jfree.chart.plot.Plot

    * @param x the x coordinate (in screen coordinates).
    * @param y the y-coordinate (in screen coordinates).
    */
   public void zoomInDomain(double x, double y)
   {
      Plot plot = this.chart.getPlot();
      if (plot instanceof 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.Plot

    * @param x the x-coordinate (in screen coordinates).
    * @param y the y coordinate (in screen coordinates).
    */
   public void zoomInRange(double x, double y)
   {
      Plot plot = this.chart.getPlot();
      if (plot instanceof 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.Plot

    * @param x the x value (in screen coordinates).
    * @param y the y value (in screen coordinates).
    */
   public void zoomOutBoth(double x, double y)
   {
      Plot plot = this.chart.getPlot();
      if (plot == null)
      {
         return;
      }
      // 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);
      zoomOutDomain(x, y);
      zoomOutRange(x, y);
      plot.setNotify(savedNotify);
   }
View Full Code Here

Examples of org.jfree.chart.plot.Plot

    * @param x the x coordinate (in screen coordinates).
    * @param y the y-coordinate (in screen coordinates).
    */
   public void zoomOutDomain(double x, double y)
   {
      Plot plot = this.chart.getPlot();
      if (plot instanceof 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.Plot

    * @param x the x coordinate (in screen coordinates).
    * @param y the y-coordinate (in screen coordinates).
    */
   public void zoomOutRange(double x, double y)
   {
      Plot plot = this.chart.getPlot();
      if (plot instanceof 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
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.