Package org.swtchart.internal.series
Class SeriesSet
java.lang.Object
org.swtchart.internal.series.SeriesSet
- All Implemented Interfaces:
ISeriesSet
A series container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bringForward
(String id) Brings the series for given id forward.void
bringToFront
(String id) Brings the series for given id to front.void
Compresses all series data.createSeries
(ISeries.SeriesType type, String id) Creates the series.void
deleteSeries
(String id) Deletes the series for given id.void
dispose()
Disposes the series.ISeries[]
Gets the array of seriesGets the series for given id.void
sendBackward
(String id) Sends the series for given id backward.void
sendToBack
(String id) Sends the series for given id to back.void
updateCompressor
(Axis axis) Updates the compressor associated with the given axis.void
Updates the stack and riser data.
-
Constructor Details
-
SeriesSet
Constructor.- Parameters:
chart
- the chart
-
-
Method Details
-
createSeries
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 interfaceISeriesSet
- Parameters:
type
- the series typeid
- the id for series- Returns:
- the series
-
getSeries
Description copied from interface:ISeriesSet
Gets the series for given id.- Specified by:
getSeries
in interfaceISeriesSet
- Parameters:
id
- the id for series- Returns:
- the series, or null if series doesn't exist for the given id.
-
getSeries
Description copied from interface:ISeriesSet
Gets the array of series- Specified by:
getSeries
in interfaceISeriesSet
- Returns:
- the array of series
-
deleteSeries
Description copied from interface:ISeriesSet
Deletes the series for given id.- Specified by:
deleteSeries
in interfaceISeriesSet
- Parameters:
id
- the series id
-
bringForward
Description copied from interface:ISeriesSet
Brings the series for given id forward.- Specified by:
bringForward
in interfaceISeriesSet
- Parameters:
id
- the series id
-
bringToFront
Description copied from interface:ISeriesSet
Brings the series for given id to front.- Specified by:
bringToFront
in interfaceISeriesSet
- Parameters:
id
- the series id
-
sendBackward
Description copied from interface:ISeriesSet
Sends the series for given id backward.- Specified by:
sendBackward
in interfaceISeriesSet
- Parameters:
id
- the series id
-
sendToBack
Description copied from interface:ISeriesSet
Sends the series for given id to back.- Specified by:
sendToBack
in interfaceISeriesSet
- Parameters:
id
- the series id
-
dispose
public void dispose()Disposes the series. -
compressAllSeries
public void compressAllSeries()Compresses all series data. -
updateCompressor
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.
-