Example usage for org.jfree.chart ContextAwareChartPanel setDoubleBuffered

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

Introduction

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

Prototype

public void setDoubleBuffered(boolean aFlag) 

Source Link

Document

Sets whether this component should use a buffer to paint.

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);
    return cacp;//from  w w  w  . j  a v a  2 s  .  co m
}