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 IDataSet
index
- public int getNumberOfLegendLabels()
getNumberOfLegendLabels
in interface IDataSet
public Paint getPaint(int index)
public ChartTypeProperties getChartTypeProperties()
IDataSet
getChartTypeProperties
in interface IDataSet
public int getNumberOfDataItems()
getNumberOfDataItems
in interface IDataSet
public void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
htmlGenerator
-