public class WekaOffscreenChartRenderer extends AbstractOffscreenChartRenderer
Constructor and Description |
---|
WekaOffscreenChartRenderer() |
Modifier and Type | Method and Description |
---|---|
String |
optionsTipTextHTML()
Gets a short list of additional options (if any),
suitable for displaying in a tip text, in HTML form
|
String |
rendererName()
The name of this off screen renderer
|
BufferedImage |
renderHistogram(int width,
int height,
List<Instances> series,
String attToPlot,
List<String> optionalArgs)
Render histogram(s) (numeric attribute) or pie chart (nominal attribute).
|
BufferedImage |
renderXYLineChart(int width,
int height,
List<Instances> series,
String xAxis,
String yAxis,
List<String> optionalArgs)
Render an XY line chart
|
BufferedImage |
renderXYScatterPlot(int width,
int height,
List<Instances> series,
String xAxis,
String yAxis,
List<String> optionalArgs)
Render an XY scatter plot
|
public String rendererName()
public String optionsTipTextHTML()
optionsTipTextHTML
in interface OffscreenChartRenderer
optionsTipTextHTML
in class AbstractOffscreenChartRenderer
public BufferedImage renderXYLineChart(int width, int height, List<Instances> series, String xAxis, String yAxis, List<String> optionalArgs) throws Exception
width
- the width of the resulting chart in pixelsheight
- the height of the resulting chart in pixelsseries
- a list of Instances - one for each series to be plottedxAxis
- the name of the attribute for the x-axis (all series Instances
are expected to have an attribute of the same type with this name)yAxis
- the name of the attribute for the y-axis (all series Instances
are expected to have an attribute of the same type with this name)optionalArgs
- optional arguments to the renderer (may be null)Exception
- if there is a problem rendering the chartpublic BufferedImage renderXYScatterPlot(int width, int height, List<Instances> series, String xAxis, String yAxis, List<String> optionalArgs) throws Exception
width
- the width of the resulting chart in pixelsheight
- the height of the resulting chart in pixelsseries
- a list of Instances - one for each series to be plottedxAxis
- the name of the attribute for the x-axis (all series Instances
are expected to have an attribute of the same type with this name)yAxis
- the name of the attribute for the y-axis (all series Instances
are expected to have an attribute of the same type with this name)optionalArgs
- optional arguments to the renderer (may be null)Exception
- if there is a problem rendering the chartpublic BufferedImage renderHistogram(int width, int height, List<Instances> series, String attToPlot, List<String> optionalArgs) throws Exception
width
- the width of the resulting chart in pixelsheight
- the height of the resulting chart in pixelsseries
- a list of Instances - one for each series to be plottedattsToPlot
- the attribute to plot
corresponding to the Instances in the series listoptionalArgs
- optional arguments to the renderer (may be null)Exception
- if there is a problem rendering the chartCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.