public class XYLineChartBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addData(String seriesName,
double xVal,
double yVal)
Adds data to the according series (i.e.
|
org.jfree.chart.JFreeChart |
build()
Builds and returns JFreeChart.
|
static XYLineChartBuilder |
newInstance(String chartTitle,
String xDomainName,
String yDomainName)
Returns a new instance of the builder.
|
static void |
saveChartAsPNG(org.jfree.chart.JFreeChart chart,
String pngFilename)
Helper that just saves the chart as specified png-file.
|
public static void saveChartAsPNG(org.jfree.chart.JFreeChart chart,
String pngFilename)
chart - pngFilename - public static XYLineChartBuilder newInstance(String chartTitle, String xDomainName, String yDomainName)
chartTitle - appears on top of the XYLineChartxDomainName - appears below the xAxisyDomainName - appears beside the yAxispublic void addData(String seriesName, double xVal, double yVal)
seriesName - xVal - yVal - public org.jfree.chart.JFreeChart build()
Copyright © 2013–2020. All rights reserved.