Package org.jCharts.chartData
Class DataSeries
java.lang.Object
org.jCharts.chartData.AxisDataSeries
org.jCharts.chartData.DataSeries
- All Implemented Interfaces:
Serializable,IAxisDataSeries,IData,IDataSeries,HTMLTestable
Collection of all IAxisPlotDataSets to display in an AxisChart
- See Also:
-
Field Summary
FieldsFields inherited from class org.jCharts.chartData.AxisDataSeries
dataSets, totalNumberOfDataSets -
Constructor Summary
ConstructorsConstructorDescriptionDataSeries(String[] axisLabels, String xAxisTitle, String yAxisTitle, String chartTitle) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetAxisLabel(int index) Returns the x-axis label corresponding to the passed indexintReturns the number of labels on the x-axisvoidtoHTML(HTMLGenerator htmlGenerator) Enables the testing routines to display the contents of this Object.voidvalidate()Validates the DataSeries implementation.Methods inherited from class org.jCharts.chartData.AxisDataSeries
addIAxisPlotDataSet, getChartTitle, getIAxisPlotDataSet, getIAxisPlotDataSetIterator, getSizeOfEachDataSet, getTotalNumberOfDataSets, getXAxisTitle, getYAxisTitle, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jCharts.chartData.interfaces.IAxisDataSeries
addIAxisPlotDataSet, getChartTitle, getIAxisPlotDataSet, getIAxisPlotDataSetIterator, getTotalNumberOfDataSets, getXAxisTitle, getYAxisTitle, size
-
Field Details
-
axisLabels
-
-
Constructor Details
-
DataSeries
Constructor- Parameters:
axisLabels-xAxisTitle- if this is NULL, no title will be displayedyAxisTitle- if this is NULL, no title will be displayedchartTitle- if this is NULL, no title will be displayed
-
-
Method Details
-
getAxisLabel
Returns the x-axis label corresponding to the passed index- Specified by:
getAxisLabelin interfaceIDataSeries- Parameters:
index-- Returns:
- String
-
getNumberOfAxisLabels
public int getNumberOfAxisLabels()Returns the number of labels on the x-axis- Specified by:
getNumberOfAxisLabelsin interfaceIDataSeries- Returns:
- int
-
validate
Description copied from interface:IAxisDataSeriesValidates the DataSeries implementation. This will only get called if the ChartProperties flag to validate is true.- Specified by:
validatein interfaceIAxisDataSeries- Overrides:
validatein classAxisDataSeries- Throws:
ChartDataExceptionPropertyException- See Also:
-
toHTML
Enables the testing routines to display the contents of this Object.- Specified by:
toHTMLin interfaceHTMLTestable- Overrides:
toHTMLin classAxisDataSeries- Parameters:
htmlGenerator-
-