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.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-