|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jCharts.chartData.ScatterPlotDataSet
public class ScatterPlotDataSet
| Field Summary | |
|---|---|
private ArrayList |
data
|
private ArrayList |
legendLabels
|
private int |
numDataItems
|
private ArrayList |
paints
|
private static Point2D.Double |
POINT
|
private ScatterPlotProperties |
scatterPlotProperties
|
| Constructor Summary | |
|---|---|
ScatterPlotDataSet(ScatterPlotProperties scatterPlotProperties)
Constructor |
|
| Method Summary | |
|---|---|
void |
addDataPoints(Point2D.Double[] points,
Paint paint,
String legendLabel)
|
static 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. |
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. |
Paint |
getPaint(int index)
Returns the legend label for the passed index. |
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 Point2D.Double POINT
private ArrayList data
private ArrayList legendLabels
private 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(Point2D.Double[] points,
Paint paint,
String legendLabel)
points - paint - legendLabel -
public void validate()
throws ChartDataException
validate in interface IAxisPlotDataSetChartDataException
public Point2D.Double getValue(int dataset,
int index)
getValue in interface IScatterPlotDataSetdataset - index -
public final String getLegendLabel(int index)
getLegendLabel in interface IDataSetindex -
public int getNumberOfLegendLabels()
getNumberOfLegendLabels in interface IDataSetpublic 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 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 | ||||||||