Examples of zoomDomainAxes()


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

         // 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.zoomDomainAxes()

         // 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.zoomDomainAxes()

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

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

               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.zoomDomainAxes()

         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

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

    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.zoomDomainAxes()

     */
    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.zoomDomainAxes()

                    - selection.y) / (double) scaledDataArea.height;
            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

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

                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

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

            Zoomable z = (Zoomable) p;
            // we need to guard against this.zoomPoint being null
            org.eclipse.swt.graphics.Point zp =
                    (this.zoomPoint != null ? this.zoomPoint
                    : new org.eclipse.swt.graphics.Point(0, 0));
            z.zoomDomainAxes(0.0, this.info.getPlotInfo(),
                    SWTUtils.toAwtPoint(zp));
        }
    }

    /**
 
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.