List of usage examples for org.jfree.chart ChartUtilities ChartUtilities
ChartUtilities
From source file:no.uio.medicine.virsurveillance.charts.BoxAndWhiskerChart_AWT.java
/** * For testing from the command line.//from w ww . j av a 2s . c om * * @param args ignored. */ public void save2File(File outputFile) throws IOException { ChartUtilities cu = new ChartUtilities() { }; ChartUtilities.saveChartAsPNG(outputFile, this.chartPanel.getChart(), 1200, 500); System.out.println("Saved at " + outputFile.toString() + " size = " + 1200 + "x" + 500); }
From source file:no.uio.medicine.virsurveillance.charts.StackedChart_AWT.java
public void save2File(File outputFile) throws IOException { ChartUtilities cu = new ChartUtilities() { };/*from w w w . j a v a2 s . c o m*/ ChartUtilities.saveChartAsPNG(outputFile, this.chartPanel.getChart(), 800, 500); System.out.println("Saved at " + outputFile.toString() + " size = " + 800 + "x" + 500); }