public class DataSet extends Object implements IDataSet, HTMLTestable
| Modifier and Type | Field and Description |
|---|---|
private ChartTypeProperties |
chartTypeProperties |
protected double[][] |
data |
protected String[] |
legendLabels |
protected Paint[] |
paints |
| Constructor and Description |
|---|
DataSet(double[][] data,
String[] legendLabels,
Paint[] paints,
ChartTypeProperties chartTypeProperties)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getNumberOfLegendLabels()
Returns the number of Legend Labels to display.
|
Paint |
getPaint(int index)
Returns the legend label for the passed index.
|
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object.
|
private ChartTypeProperties chartTypeProperties
protected double[][] data
protected String[] legendLabels
protected Paint[] paints
public DataSet(double[][] data,
String[] legendLabels,
Paint[] paints,
ChartTypeProperties chartTypeProperties)
data - legendLabels - will be NULL if no Legend.paints - chartTypeProperties - public final String getLegendLabel(int index)
getLegendLabel in interface IDataSetindex - public int getNumberOfLegendLabels()
getNumberOfLegendLabels in interface IDataSetpublic Paint getPaint(int index)
public ChartTypeProperties getChartTypeProperties()
IDataSetgetChartTypeProperties in interface IDataSetpublic int getNumberOfDataItems()
getNumberOfDataItems in interface IDataSetpublic void toHTML(HTMLGenerator htmlGenerator)
toHTML in interface HTMLTestablehtmlGenerator -