Example usage for org.jfree.chart ChartPanel isRangeZoomable

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

Introduction

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

Prototype

public boolean isRangeZoomable() 

Source Link

Document

Returns the flag that determines whether or not zooming is enabled for the range axis.

Usage

From source file:net.sf.mzmine.chartbasics.ChartLogics.java

/**
 * // ww  w . java  2 s .c om
 * @param chartPanel
 * @return
 */
public static boolean isMouseZoomable(ChartPanel chartPanel) {
    return chartPanel instanceof EChartPanel ? ((EChartPanel) chartPanel).isMouseZoomable()
            : chartPanel.isRangeZoomable() && chartPanel.isDomainZoomable();
}