Example usage for org.jfree.chart ChartPanel isDomainZoomable

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

Introduction

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

Prototype

public boolean isDomainZoomable() 

Source Link

Document

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

Usage

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

/**
 * //  www  . jav a  2  s.  c o  m
 * @param chartPanel
 * @return
 */
public static boolean isMouseZoomable(ChartPanel chartPanel) {
    return chartPanel instanceof EChartPanel ? ((EChartPanel) chartPanel).isMouseZoomable()
            : chartPanel.isRangeZoomable() && chartPanel.isDomainZoomable();
}