示例#1
0
 private void adjustAxisControlComponents() {
   if (!axisAdjusting) {
     axisAdjusting = true;
     try {
       if (xAxisRangeControl.isAutoMinMax()) {
         xAxisRangeControl.adjustComponents(chart.getXYPlot().getDomainAxis(), 0);
       }
       if (yAxisRangeControl.isAutoMinMax()) {
         yAxisRangeControl.adjustComponents(chart.getXYPlot().getRangeAxis(), 2);
       }
     } finally {
       axisAdjusting = false;
     }
   }
 }
示例#2
0
 public void adjustComponents(ValueAxis axis, int numDecimalPlaces) {
   adjustComponents(axis.getLowerBound(), axis.getUpperBound(), numDecimalPlaces);
 }