Example usage for org.jfree.chart ChartPanel zoomOutBoth

List of usage examples for org.jfree.chart ChartPanel zoomOutBoth

Introduction

In this page you can find the example usage for org.jfree.chart ChartPanel zoomOutBoth.

Prototype

public void zoomOutBoth(double x, double y) 

Source Link

Document

Zooms out on an anchor point (specified in screen coordinate space).

Usage

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);
}