public final class AxisChartDataSet extends DataSet implements IAxisChartDataSet, HTMLTestable
| Modifier and Type | Field and Description |
|---|---|
private ChartType |
chartType |
data, legendLabels, paints| Constructor and Description |
|---|
AxisChartDataSet(double[][] data,
String[] legendLabels,
Paint[] paints,
ChartType chartType,
ChartTypeProperties chartTypeProperties)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ChartType |
getChartType()
Returns the type constant that this data set should be plotted as.
|
int |
getNumberOfDataSets()
Returns the number of IAxisChartDataSet Objects in this series
|
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.
|
getChartTypeProperties, getLegendLabel, getNumberOfDataItems, getNumberOfLegendLabels, getPaintclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChartTypeProperties, getLegendLabel, getNumberOfDataItems, getNumberOfLegendLabels, getPaintprivate ChartType chartType
public AxisChartDataSet(double[][] data,
String[] legendLabels,
Paint[] paints,
ChartType chartType,
ChartTypeProperties chartTypeProperties)
throws ChartDataException
data - the data sets to be displayed in the chart.legendLabels - if this is: NULL there will be no Legend. Otherwise, there must be an
one to one mapping of labels to data sets.paints - paints to use for the data sets. There must be an one to one mapping of
labels to data sets.chartType - constant defining how this data should be renderedchartTypeProperties - properties Object specific to the type of chart you are rendering.ChartDataException - if data is not in correct form.public void validate()
throws ChartDataException,
PropertyException
validate in interface IAxisPlotDataSetChartDataExceptionPropertyExceptionpublic final double getValue(int dataset,
int index)
throws ArrayIndexOutOfBoundsException
getValue in interface IAxisChartDataSetdataset - index - ArrayIndexOutOfBoundsExceptionpublic final ChartType getChartType()
getChartType in interface IAxisPlotDataSetChartTypepublic final int getNumberOfDataSets()
getNumberOfDataSets in interface IAxisPlotDataSetpublic void toHTML(HTMLGenerator htmlGenerator)
toHTML in interface HTMLTestabletoHTML in class DataSethtmlGenerator -