List of usage examples for org.jfree.chart ContextAwareChartPanel setDoubleBuffered
public void setDoubleBuffered(boolean aFlag)
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 }