Package org.jfree.chart.plot

Examples of org.jfree.chart.plot.Plot


        }

        chart.setBackgroundPaint(this.chartBackgroundPaint);

        // now process the plot if there is one
        Plot plot = chart.getPlot();
        if (plot != null) {
            applyToPlot(plot);
        }
    }
View Full Code Here


      this.chart = chart;
      if (chart != null)
      {
         this.chart.addChangeListener(this);
         this.chart.addProgressListener(this);
         Plot plot = chart.getPlot();
         this.domainZoomable = false;
         this.rangeZoomable = false;
         if (plot instanceof Zoomable)
         {
            Zoomable z = (Zoomable) plot;
View Full Code Here

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

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

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

   {
      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

    * @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

    * @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

    * @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

    * @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

TOP

Related Classes of org.jfree.chart.plot.Plot

Copyright © 2018 www.massapicom. 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.