Package org.jfree.chart.axis

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


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

      ValueAxis dAxis = xyPlot.getDomainAxis();
      if (dAxis instanceof DateAxis) {
        ((DateAxis) dAxis).setMinimumDate(lowerDomainValD.getTime());
View Full Code Here


        NumberAxis nAxis = (NumberAxis) dAxis;
        if (lowerDomainValN != upperDomainValN) {
          nAxis.setRange(lowerDomainValN, upperDomainValN);
        }
        if (! Double.isNaN(anchorValueD))
          nAxis.centerRange(anchorValueD);
      }
    } else if (plot instanceof CategoryPlot) {
      CategoryPlot catPlot = (CategoryPlot) plot;
      NumberAxis axis = (NumberAxis) catPlot.getRangeAxis();
      axis.setLowerBound(lowerRangeVal);
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.