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; } } }
public void adjustComponents(ValueAxis axis, int numDecimalPlaces) { adjustComponents(axis.getLowerBound(), axis.getUpperBound(), numDecimalPlaces); }