|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jCharts.chartData.ScatterPlotDataSet
| Field Summary | |
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 Summary | |
ScatterPlotDataSet(ScatterPlotProperties scatterPlotProperties)
Constructor |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
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
| Constructor Detail |
public ScatterPlotDataSet(ScatterPlotProperties scatterPlotProperties)
scatterPlotProperties - | Method Detail |
public final ChartType getChartType()
getChartType in interface IAxisPlotDataSetChartType
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 IAxisPlotDataSetChartDataException
public java.awt.geom.Point2D.Double getValue(int dataset,
int index)
getValue in interface IScatterPlotDataSetdataset - index -
public final java.lang.String getLegendLabel(int index)
getLegendLabel in interface IDataSetindex -
public int getNumberOfLegendLabels()
getNumberOfLegendLabels in interface IDataSetpublic java.awt.Paint getPaint(int index)
getPaint in interface IDataSetindex -
public ChartTypeProperties getChartTypeProperties()
IDataSet
getChartTypeProperties in interface IDataSetpublic int getNumberOfDataSets()
getNumberOfDataSets in interface IAxisPlotDataSetpublic int getNumberOfDataItems()
getNumberOfDataItems in interface IDataSetpublic static final java.awt.geom.Point2D.Double createPoint2DDouble()
public void toHTML(HTMLGenerator htmlGenerator)
toHTML in interface HTMLTestablehtmlGenerator -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||