public class ScatterPlotDataSet extends java.lang.Object implements IScatterPlotDataSet, HTMLTestable
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList |
data |
private java.util.ArrayList |
legendLabels |
private int |
numDataItems |
private java.util.ArrayList |
paints |
private static java.awt.geom.Point2D.Double |
POINT |
private ScatterPlotProperties |
scatterPlotProperties |
Constructor and Description |
---|
ScatterPlotDataSet(ScatterPlotProperties scatterPlotProperties)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDataPoints(java.awt.geom.Point2D.Double[] points,
java.awt.Paint paint,
java.lang.String legendLabel) |
static java.awt.geom.Point2D.Double |
createPoint2DDouble()
Take advantage of the face Cloning performs better than creating new for highly used
Objects.
|
ChartType |
getChartType()
Returns the type constant that this data set should be plotted as.
|
ChartTypeProperties |
getChartTypeProperties()
Returns ChartTypeProperties Object for the data set which will be typed into the specific
chart type class.
|
java.lang.String |
getLegendLabel(int index)
Returns the legend label for the passed index.
|
int |
getNumberOfDataItems()
Returns the number of elements in the data set.
|
int |
getNumberOfDataSets()
Returns the number of elements in the data set.
|
int |
getNumberOfLegendLabels()
Returns the number of Legend Labels to display.
|
java.awt.Paint |
getPaint(int index)
Returns the legend label for the passed index.
|
java.awt.geom.Point2D.Double |
getValue(int dataset,
int index)
Returns the value in the data set at the specified position.
|
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object.
|
void |
validate()
Performs a limited validation of data.
|
private static java.awt.geom.Point2D.Double POINT
private java.util.ArrayList data
private java.util.ArrayList legendLabels
private java.util.ArrayList paints
private ScatterPlotProperties scatterPlotProperties
private int numDataItems
public ScatterPlotDataSet(ScatterPlotProperties scatterPlotProperties)
scatterPlotProperties
- public final ChartType getChartType()
getChartType
in interface IAxisPlotDataSet
ChartType
public void addDataPoints(java.awt.geom.Point2D.Double[] points, java.awt.Paint paint, java.lang.String legendLabel)
points
- paint
- legendLabel
- public void validate() throws ChartDataException
validate
in interface IAxisPlotDataSet
ChartDataException
public java.awt.geom.Point2D.Double getValue(int dataset, int index)
getValue
in interface IScatterPlotDataSet
dataset
- index
- public final java.lang.String getLegendLabel(int index)
getLegendLabel
in interface IDataSet
index
- public int getNumberOfLegendLabels()
getNumberOfLegendLabels
in interface IDataSet
public java.awt.Paint getPaint(int index)
public ChartTypeProperties getChartTypeProperties()
IDataSet
getChartTypeProperties
in interface IDataSet
public int getNumberOfDataSets()
getNumberOfDataSets
in interface IAxisPlotDataSet
public int getNumberOfDataItems()
getNumberOfDataItems
in interface IDataSet
public static final java.awt.geom.Point2D.Double createPoint2DDouble()
public void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
htmlGenerator
-