|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.beans.AbstractOffscreenChartRenderer
weka.gui.beans.WekaOffscreenChartRenderer
public class WekaOffscreenChartRenderer
Default OffscreenChartRenderer that uses Weka's built-in chart and graph classes.
Constructor Summary | |
---|---|
WekaOffscreenChartRenderer()
|
Method Summary | |
---|---|
java.lang.String |
optionsTipTextHTML()
Gets a short list of additional options (if any), suitable for displaying in a tip text, in HTML form |
java.lang.String |
rendererName()
The name of this off screen renderer |
java.awt.image.BufferedImage |
renderHistogram(int width,
int height,
java.util.List<Instances> series,
java.lang.String attToPlot,
java.util.List<java.lang.String> optionalArgs)
Render histogram(s) (numeric attribute) or pie chart (nominal attribute). |
java.awt.image.BufferedImage |
renderXYLineChart(int width,
int height,
java.util.List<Instances> series,
java.lang.String xAxis,
java.lang.String yAxis,
java.util.List<java.lang.String> optionalArgs)
Render an XY line chart |
java.awt.image.BufferedImage |
renderXYScatterPlot(int width,
int height,
java.util.List<Instances> series,
java.lang.String xAxis,
java.lang.String yAxis,
java.util.List<java.lang.String> optionalArgs)
Render an XY scatter plot |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WekaOffscreenChartRenderer()
Method Detail |
---|
public java.lang.String rendererName()
public java.lang.String optionsTipTextHTML()
optionsTipTextHTML
in interface OffscreenChartRenderer
optionsTipTextHTML
in class AbstractOffscreenChartRenderer
public java.awt.image.BufferedImage renderXYLineChart(int width, int height, java.util.List<Instances> series, java.lang.String xAxis, java.lang.String yAxis, java.util.List<java.lang.String> optionalArgs) throws java.lang.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)
java.lang.Exception
- if there is a problem rendering the chartpublic java.awt.image.BufferedImage renderXYScatterPlot(int width, int height, java.util.List<Instances> series, java.lang.String xAxis, java.lang.String yAxis, java.util.List<java.lang.String> optionalArgs) throws java.lang.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)
java.lang.Exception
- if there is a problem rendering the chartpublic java.awt.image.BufferedImage renderHistogram(int width, int height, java.util.List<Instances> series, java.lang.String attToPlot, java.util.List<java.lang.String> optionalArgs) throws java.lang.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)
java.lang.Exception
- if there is a problem rendering the chart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |