org.jCharts.chartData
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, getPaint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChartTypeProperties, getLegendLabel, getNumberOfDataItems, getNumberOfLegendLabels, getPaint
private 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 IAxisPlotDataSet
ChartDataException
PropertyException
public final double getValue(int dataset, int index) throws ArrayIndexOutOfBoundsException
getValue
in interface IAxisChartDataSet
dataset
- index
- ArrayIndexOutOfBoundsException
public final ChartType getChartType()
getChartType
in interface IAxisPlotDataSet
ChartType
public final int getNumberOfDataSets()
getNumberOfDataSets
in interface IAxisPlotDataSet
public void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
toHTML
in class DataSet
htmlGenerator
-