Class Scatter
- java.lang.Object
-
- org.hortonmachine.gears.utils.chart.Scatter
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jfree.chart.JFreeChartchartprotected org.jfree.data.xy.XYSeriesCollectiondatasetprotected List<Boolean>showLinesprotected List<Boolean>showShapesprotected Stringtitleprotected StringxLabelprotected booleanxLogprotected StringyLabelprotected booleanyLog
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(String text, double x)voidaddSeries(String seriesName, double[] x, double[] y)Add a new series by name and data.voidaddSeries(org.jfree.data.xy.XYSeries series)org.jfree.chart.JFreeChartgetChart()BufferedImagegetImage(int width, int height)org.jfree.data.xy.XYSeriesgetSeries(String seriesName)GetSeriesto be populated.StringgetTitle()voidsetColors(Color[] colors)voidsetLogAxes(boolean xLog, boolean yLog)voidsetShowLines(List<Boolean> showLines)voidsetShowShapes(List<Boolean> showShapes)voidsetXLabel(String xLabel)voidsetXRange(double min, double max)voidsetYLabel(String yLabel)voidsetYRange(double min, double max)
-
-
-
Constructor Detail
-
Scatter
public Scatter(String title)
-
Scatter
public Scatter()
-
-
Method Detail
-
addSeries
public void addSeries(String seriesName, double[] x, double[] y)
Add a new series by name and data.- Parameters:
seriesName- the name.x- the x data array.y- the y data array.
-
addSeries
public void addSeries(org.jfree.data.xy.XYSeries series)
-
getSeries
public org.jfree.data.xy.XYSeries getSeries(String seriesName)
GetSeriesto be populated.Teh series is added to the dataset.
- Parameters:
seriesName- the name of the series to add.- Returns:
- the
XYSeriesto use.
-
setLogAxes
public void setLogAxes(boolean xLog, boolean yLog)
-
setXLabel
public void setXLabel(String xLabel)
-
setYLabel
public void setYLabel(String yLabel)
-
getImage
public BufferedImage getImage(int width, int height)
-
setXRange
public void setXRange(double min, double max)
-
setYRange
public void setYRange(double min, double max)
-
addAnnotation
public void addAnnotation(String text, double x)
-
setColors
public void setColors(Color[] colors)
-
-