List of usage examples for org.jfree.chart ChartPanel zoomInBoth
public void zoomInBoth(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/* w w w . jav a2s. c o m*/ chart.zoomOutBoth(width / 2, height / 2); }