Example usage for org.jfree.chart ChartPanel setAutoscrolls

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

Introduction

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

Prototype

@BeanProperty(bound = false, expert = true, description = "Determines if this component automatically scrolls its contents when dragged.")
public void setAutoscrolls(boolean autoscrolls) 

Source Link

Document

Sets the autoscrolls property.

Usage

From source file:DashboardInterface.LaunchGraph.java

/**
 * Creates a panel for the demo (used by SuperDemo.java).
 *
 * @return A panel.//from   w w  w. j a v  a2  s . co  m
 */
public JPanel createDemoPanel() {
    JFreeChart chart = createChart(null);
    ChartPanel panel = new ChartPanel(chart);
    panel.setFillZoomRectangle(false);
    panel.setMouseWheelEnabled(false);
    panel.setAutoscrolls(false);
    panel.setDomainZoomable(false);
    panel.setFocusable(false);
    return panel;
}