Package org.jfree.chart.axis

Examples of org.jfree.chart.axis.NumberAxis.resizeRange()


        NumberAxis nAxis = (NumberAxis) rAxis;
        if (lowerRangeVal != upperRangeVal) {
          nAxis.setLowerBound(lowerRangeVal);
          nAxis.setUpperBound(upperRangeVal);
        }
        nAxis.resizeRange(zoomFactor);
        if (! Double.isNaN(anchorValueR))
          nAxis.centerRange(anchorValueR);
      }

      ValueAxis dAxis = xyPlot.getDomainAxis();
View Full Code Here


    } else if (plot instanceof CategoryPlot) {
      CategoryPlot catPlot = (CategoryPlot) plot;
      NumberAxis axis = (NumberAxis) catPlot.getRangeAxis();
      axis.setLowerBound(lowerRangeVal);
      axis.setUpperBound(upperRangeVal);
      axis.resizeRange(zoomFactor);
    }
    }

    public double getAnchorValueD() { return anchorValueD; }
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.