Class SeriesSet

java.lang.Object
org.swtchart.internal.series.SeriesSet
All Implemented Interfaces:
ISeriesSet

public class SeriesSet extends Object implements ISeriesSet
A series container.
  • Constructor Details

    • SeriesSet

      public SeriesSet(Chart chart)
      Constructor.
      Parameters:
      chart - the chart
  • Method Details

    • createSeries

      public ISeries createSeries(ISeries.SeriesType type, String id)
      Description copied from interface: ISeriesSet
      Creates the series. If series for given id already exists, the existing series will be overwritten.
      Specified by:
      createSeries in interface ISeriesSet
      Parameters:
      type - the series type
      id - the id for series
      Returns:
      the series
    • getSeries

      public ISeries getSeries(String id)
      Description copied from interface: ISeriesSet
      Gets the series for given id.
      Specified by:
      getSeries in interface ISeriesSet
      Parameters:
      id - the id for series
      Returns:
      the series, or null if series doesn't exist for the given id.
    • getSeries

      public ISeries[] getSeries()
      Description copied from interface: ISeriesSet
      Gets the array of series
      Specified by:
      getSeries in interface ISeriesSet
      Returns:
      the array of series
    • deleteSeries

      public void deleteSeries(String id)
      Description copied from interface: ISeriesSet
      Deletes the series for given id.
      Specified by:
      deleteSeries in interface ISeriesSet
      Parameters:
      id - the series id
    • bringForward

      public void bringForward(String id)
      Description copied from interface: ISeriesSet
      Brings the series for given id forward.
      Specified by:
      bringForward in interface ISeriesSet
      Parameters:
      id - the series id
    • bringToFront

      public void bringToFront(String id)
      Description copied from interface: ISeriesSet
      Brings the series for given id to front.
      Specified by:
      bringToFront in interface ISeriesSet
      Parameters:
      id - the series id
    • sendBackward

      public void sendBackward(String id)
      Description copied from interface: ISeriesSet
      Sends the series for given id backward.
      Specified by:
      sendBackward in interface ISeriesSet
      Parameters:
      id - the series id
    • sendToBack

      public void sendToBack(String id)
      Description copied from interface: ISeriesSet
      Sends the series for given id to back.
      Specified by:
      sendToBack in interface ISeriesSet
      Parameters:
      id - the series id
    • dispose

      public void dispose()
      Disposes the series.
    • compressAllSeries

      public void compressAllSeries()
      Compresses all series data.
    • updateCompressor

      public void updateCompressor(Axis axis)
      Updates the compressor associated with the given axis.

      In most cases, compressor is updated when series is changed. However, there is a case that compressor has to be updated with the changes in axis.

      Parameters:
      axis - the axis
    • updateStackAndRiserData

      public void updateStackAndRiserData()
      Updates the stack and riser data.