Class XYMultipleSeriesDataset

java.lang.Object
com.codename1.charts.models.XYMultipleSeriesDataset

public class XYMultipleSeriesDataset extends Object
A series that includes 0 to many XYSeries.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds all the provided XY series to the list.
    void
    addSeries(int index, XYSeries series)
    Adds a new XY series to the list.
    void
    Adds a new XY series to the list.
    void
    Removes all the XY series from the list.
    Returns an array of the XY series.
    getSeriesAt(int index)
    Returns the XY series at the specified index.
    int
    Returns the XY series count.
    void
    removeSeries(int index)
    Removes the XY series from the list.
    void
    Removes the XY series from the list.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    Modifier and Type
    Method
    Description
    protected Object
     
    boolean
    Indicates whether some other object is "equal to" this one.
    final Class
    Returns the runtime class of an object.
    int
    Returns a hash code value for the object.
    final void
    Wakes up a single thread that is waiting on this object's monitor.
    final void
    Wakes up all threads that are waiting on this object's monitor.
    Returns a string representation of the object.
    final void
    Causes current thread to wait until another thread invokes the method or the method for this object.
    final void
    wait(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 void
    wait(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

      public void addSeries(XYSeries series)

      Adds a new XY series to the list.

      Parameters
      • series: the XY series to add
    • addSeries

      public void addSeries(int index, XYSeries series)

      Adds a new XY series to the list.

      Parameters
      • index: the index in the series list

      • series: the XY series to add

    • addAllSeries

      public void addAllSeries(List<XYSeries> series)

      Adds all the provided XY series to the list.

      Parameters
      • series: the XY series to add
    • 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

      public void removeSeries(XYSeries series)

      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

      public XYSeries getSeriesAt(int index)

      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

      public XYSeries[] getSeries()

      Returns an array of the XY series.

      Returns

      the XY series array