Example usage for org.jfree.chart ContextAwareChartPanel ContextAwareChartPanel

List of usage examples for org.jfree.chart ContextAwareChartPanel ContextAwareChartPanel

Introduction

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

Prototype

public ContextAwareChartPanel(JFreeChart chart, int width, int height, int minimumDrawWidth,
        int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, boolean useBuffer,
        boolean properties, boolean copy, boolean save, boolean print, boolean zoom, boolean tooltips) 

Source Link

Usage

From source file:net.sf.maltcms.chromaui.charts.ChartCustomizer.java

public static ChartPanel createChartPanel(JFreeChart chart, int width, int height, boolean useBuffer) {
    Dimension maxSize = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getSize();
    ContextAwareChartPanel cacp = new ContextAwareChartPanel(chart, width, height, 50, 50, maxSize.width,
            maxSize.height, useBuffer, true, true, true, true, true, true);
    cacp.setDoubleBuffered(true);//from   w  w w . j  a  v  a  2 s  .com
    return cacp;
}