List of usage examples for org.jfree.chart ChartPanel zoomOutBoth
public void zoomOutBoth(double x, double y)
From source file:com.vgi.mafscaling.MafChartPanel.java
private void zoomChartAxis(ChartPanel chart, boolean increase) { int width = chart.getMaximumDrawWidth() - chart.getMinimumDrawWidth(); int height = chart.getMaximumDrawHeight() - chart.getMinimumDrawWidth(); if (increase) chart.zoomInBoth(width / 2, height / 2); else//from w ww .j a v a 2s . c om chart.zoomOutBoth(width / 2, height / 2); }