List of usage examples for org.jfree.chart ChartPanel setEnforceFileExtensions
public void setEnforceFileExtensions(boolean enforce)
From source file:org.jfree.chart.demo.CompassDemo1.java
public CompassDemo1(String s) { super(s);//from w w w.java2s . c o m DefaultValueDataset defaultvaluedataset = new DefaultValueDataset(new Double(45D)); JFreeChart jfreechart = createChart(defaultvaluedataset); ChartPanel chartpanel = new ChartPanel(jfreechart); chartpanel.setPreferredSize(new Dimension(500, 270)); chartpanel.setEnforceFileExtensions(false); setContentPane(chartpanel); }
From source file:org.jfree.chart.demo.CategoryStepChartDemo1.java
public CategoryStepChartDemo1(String s) { super(s);//from w w w .j a v a 2 s . c om CategoryDataset categorydataset = createDataset(); JFreeChart jfreechart = createChart(categorydataset); ChartPanel chartpanel = new ChartPanel(jfreechart); chartpanel.setPreferredSize(new Dimension(500, 270)); chartpanel.setEnforceFileExtensions(false); setContentPane(chartpanel); }
From source file:org.jfree.chart.demo.CompassDemo2.java
/** * Creates a new demo application.//w w w . ja va2 s . c o m * * @param title the frame title. */ public CompassDemo2(final String title) { super(title); final ValueDataset dataset = new DefaultValueDataset(new Double(45.0)); final JFreeChart chart = createChart(dataset); // add the chart to a panel... final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); chartPanel.setEnforceFileExtensions(false); setContentPane(chartPanel); }
From source file:org.jfree.chart.demo.PolarChartDemo.java
/** * Creates a new instance of the demo./*from w w w .j a v a 2s. c om*/ * * @param title the frame title. */ public PolarChartDemo(final String title) { super(title); final XYDataset dataset = createDataset(); final JFreeChart chart = createChart(dataset); final ChartPanel chartPanel = new PolarChartPanel(chart); chartPanel.setPreferredSize(new Dimension(500, 270)); chartPanel.setEnforceFileExtensions(false); setContentPane(chartPanel); }
From source file:org.jfree.chart.demo.CategoryStepChartDemo.java
/** * Creates a new demo application.//w ww . jav a2s .c om * * @param title the frame title. */ public CategoryStepChartDemo(final String title) { super(title); // create a dataset... final double[][] data = new double[][] { { 1.0, 4.0, 3.0, 5.0, 5.0, 7.0, 7.0, 8.0 }, { 5.0, 7.0, 6.0, 8.0, 4.0, 4.0, 2.0, 1.0 }, { 4.0, 3.0, 2.0, 3.0, 6.0, 3.0, 4.0, 3.0 } }; final CategoryDataset dataset = DatasetUtilities.createCategoryDataset("Series ", "Type ", data); // create the chart... final JFreeChart chart = createChart(dataset); final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new Dimension(500, 270)); chartPanel.setEnforceFileExtensions(false); setContentPane(chartPanel); }
From source file:org.jfree.chart.demo.WaterfallChartDemo.java
/** * Creates a new WaterFall Chart demo.//from w w w .j ava 2 s . c o m * * @param title the frame title. */ public WaterfallChartDemo(final String title) { super(title); final CategoryDataset dataset = createDataset(); final JFreeChart chart = createChart(dataset); final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); chartPanel.setEnforceFileExtensions(false); setContentPane(chartPanel); }
From source file:org.jfree.chart.demo.WaterfallChartDemo2.java
/** * Creates a new WaterFall Chart demo.//from w w w. jav a 2 s . c o m * * @param title the frame title. */ public WaterfallChartDemo2(final String title) { super(title); final CategoryDataset dataset = createDataset(); final JFreeChart chart = createChart(dataset); final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); chartPanel.setEnforceFileExtensions(false); setContentPane(chartPanel); }
From source file:com.seniorproject.augmentedreality.test.AreaChartDemo.java
/** * Creates a new demo application./*from w ww .j a v a 2 s .c o m*/ * * @param title the frame title. */ public AreaChartDemo(final String title) { super(title); // create a dataset... final double[][] data = new double[][] { { 1.0, 4.0, 3.0, 5.0, 5.0, 7.0, 7.0, 8.0 }, { 5.0, 7.0, 6.0, 8.0, 4.0, 4.0, 2.0, 1.0 }, { 4.0, 3.0, 2.0, 3.0, 6.0, 3.0, 4.0, 3.0 } }; final CategoryDataset dataset = DatasetUtilities.createCategoryDataset("Series ", "Type ", data); // create the chart... final JFreeChart chart = createChart(dataset); final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new Dimension(500, 270)); chartPanel.setEnforceFileExtensions(false); setContentPane(chartPanel); }