List of usage examples for org.jfree.chart ContextAwareChartPanel ContextAwareChartPanel
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)
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; }