Class XYMultipleSeriesDataset
java.lang.Object
com.codename1.charts.models.XYMultipleSeriesDataset
A series that includes 0 to many XYSeries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllSeries(List<XYSeries> series) Adds all the provided XY series to the list.voidAdds a new XY series to the list.voidAdds a new XY series to the list.voidclear()Removes all the XY series from the list.XYSeries[]Returns an array of the XY series.getSeriesAt(int index) Returns the XY series at the specified index.intReturns the XY series count.voidremoveSeries(int index) Removes the XY series from the list.voidremoveSeries(XYSeries series) Removes the XY series from the list.
-
Constructor Details
-
XYMultipleSeriesDataset
public XYMultipleSeriesDataset()
-
-
Method Details
-
addSeries
Adds a new XY series to the list.
Parameters
series: the XY series to add
-
addSeries
Adds a new XY series to the list.
Parameters
-
index: the index in the series list -
series: the XY series to add
-
-
addAllSeries
-
removeSeries
public void removeSeries(int index) Removes the XY series from the list.
Parameters
index: the index in the series list of the series to remove
-
removeSeries
Removes the XY series from the list.
Parameters
series: the XY series to be removed
-
clear
public void clear()Removes all the XY series from the list. -
getSeriesAt
Returns the XY series at the specified index.
Parameters
index: the index
Returns
the XY series at the index
-
getSeriesCount
public int getSeriesCount()Returns the XY series count.
Returns
the XY series count
-
getSeries
Returns an array of the XY series.
Returns
the XY series array
-