public abstract class AbstractPlotter<T> extends Object
Constructor and Description |
---|
AbstractPlotter() |
Modifier and Type | Method and Description |
---|---|
protected org.knowm.xchart.XYChart |
baseChart() |
protected void |
encode(org.knowm.xchart.internal.chartpart.Chart<?,?> chart,
File outputFile) |
ChartProperties |
getChartProperties()
Get the chart properties
|
int |
getOutputHeight()
Gets the output height
|
int |
getOutputWidth()
Gets the output width
|
boolean |
isPlotGridLinesVisible()
Checks whether the grid lines are set to visible or not
|
abstract void |
plot(T reportData,
File outputFile) |
void |
setChartProperties(ChartProperties chartProperties)
Set the chart properties
|
void |
setOutputHeight(int outputHeight)
Sets the output height for the graph
|
void |
setOutputWidth(int outputWidth)
Sets the output width for the graph
|
void |
setPlotGridLinesVisible(boolean plotGridLinesVisible)
Sets the the grid lines should be visible
|
protected void |
updateChart(String title,
String seriesName,
String xTitle,
String yTitle) |
protected void |
validateDataSet(List<?> xData,
List<?> yData) |
public void setOutputWidth(int outputWidth)
outputWidth
- the width in pixelspublic int getOutputWidth()
public void setOutputHeight(int outputHeight)
outputHeight
- the height in pixelspublic int getOutputHeight()
public void setPlotGridLinesVisible(boolean plotGridLinesVisible)
plotGridLinesVisible
- true to make the grid lines visible or false otherwisepublic boolean isPlotGridLinesVisible()
public ChartProperties getChartProperties()
public void setChartProperties(ChartProperties chartProperties)
chartProperties
- the chart properties objectprotected void validateDataSet(List<?> xData, List<?> yData) throws EmptyDataSet, IncompatibleDataSet
EmptyDataSet
IncompatibleDataSet
protected void updateChart(String title, String seriesName, String xTitle, String yTitle)
protected void encode(org.knowm.xchart.internal.chartpart.Chart<?,?> chart, File outputFile)
protected org.knowm.xchart.XYChart baseChart()
public abstract void plot(T reportData, File outputFile) throws MaestroException
MaestroException
This documentation was released into the public domain.