public class XYMultipleSeriesDataset
- Object
- XYMultipleSeriesDataset
A series that includes 0 to many XYSeries.
Constructors
public XYMultipleSeriesDataset() |
Methods
public synchronized void addSeries(XYSeries series) | Adds a new XY series to the list. |
public synchronized void addSeries(int index, XYSeries series) | Adds a new XY series to the list. |
public synchronized void addAllSeries(List<XYSeries> series) | Adds all the provided XY series to the list. |
public synchronized void removeSeries(int index) | Removes the XY series from the list. |
public synchronized void removeSeries(XYSeries series) | Removes the XY series from the list. |
public synchronized void clear() | Removes all the XY series from the list. |
public synchronized XYSeries getSeriesAt(int index) | Returns the XY series at the specified index. |
public synchronized int getSeriesCount() | Returns the XY series count. |
public synchronized XYSeries[] getSeries() | Returns an array of the XY series. |
Inherited methods
Constructor details
XYMultipleSeriesDataset
public XYMultipleSeriesDataset()Method details
addSeries
public synchronized void addSeries(XYSeries series)Adds a new XY series to the list.
Parameters
seriesXYSeries- the XY series to add
addSeries
public synchronized void addSeries(int index, XYSeries series)Adds a new XY series to the list.
Parameters
indexint- the index in the series list
seriesXYSeries- the XY series to add
addAllSeries
public synchronized void addAllSeries(List<XYSeries> series)Adds all the provided XY series to the list.
Parameters
seriesList<XYSeries>- the XY series to add
removeSeries
public synchronized void removeSeries(int index)Removes the XY series from the list.
Parameters
indexint- the index in the series list of the series to remove
removeSeries
public synchronized void removeSeries(XYSeries series)Removes the XY series from the list.
Parameters
seriesXYSeries- the XY series to be removed
clear
public synchronized void clear()Removes all the XY series from the list.
getSeriesAt
public synchronized XYSeries getSeriesAt(int index)Returns the XY series at the specified index.
Parameters
indexint- the index
Returns
the XY series at the index
getSeriesCount
public synchronized int getSeriesCount()Returns the XY series count.
Returns
the XY series count
getSeries
public synchronized XYSeries[] getSeries()Returns an array of the XY series.
Returns
the XY series array