Package org.swtchart.internal.series
Class SeriesSet
- java.lang.Object
-
- org.swtchart.internal.series.SeriesSet
-
- All Implemented Interfaces:
ISeriesSet
public class SeriesSet extends java.lang.Object implements ISeriesSet
A series container.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbringForward(java.lang.String id)Brings the series for given id forward.voidbringToFront(java.lang.String id)Brings the series for given id to front.voidcompressAllSeries()Compresses all series data.ISeriescreateSeries(ISeries.SeriesType type, java.lang.String id)Creates the series.voiddeleteSeries(java.lang.String id)Deletes the series for given id.voiddispose()Disposes the series.ISeries[]getSeries()Gets the array of seriesISeriesgetSeries(java.lang.String id)Gets the series for given id.voidsendBackward(java.lang.String id)Sends the series for given id backward.voidsendToBack(java.lang.String id)Sends the series for given id to back.voidupdateCompressor(Axis axis)Updates the compressor associated with the given axis.voidupdateStackAndRiserData()Updates the stack and riser data.
-
-
-
Constructor Detail
-
SeriesSet
public SeriesSet(Chart chart)
Constructor.- Parameters:
chart- the chart
-
-
Method Detail
-
createSeries
public ISeries createSeries(ISeries.SeriesType type, java.lang.String id)
Description copied from interface:ISeriesSetCreates the series. If series for given id already exists, the existing series will be overwritten.- Specified by:
createSeriesin interfaceISeriesSet- Parameters:
type- the series typeid- the id for series- Returns:
- the series
-
getSeries
public ISeries getSeries(java.lang.String id)
Description copied from interface:ISeriesSetGets the series for given id.- Specified by:
getSeriesin interfaceISeriesSet- 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:ISeriesSetGets the array of series- Specified by:
getSeriesin interfaceISeriesSet- Returns:
- the array of series
-
deleteSeries
public void deleteSeries(java.lang.String id)
Description copied from interface:ISeriesSetDeletes the series for given id.- Specified by:
deleteSeriesin interfaceISeriesSet- Parameters:
id- the series id
-
bringForward
public void bringForward(java.lang.String id)
Description copied from interface:ISeriesSetBrings the series for given id forward.- Specified by:
bringForwardin interfaceISeriesSet- Parameters:
id- the series id
-
bringToFront
public void bringToFront(java.lang.String id)
Description copied from interface:ISeriesSetBrings the series for given id to front.- Specified by:
bringToFrontin interfaceISeriesSet- Parameters:
id- the series id
-
sendBackward
public void sendBackward(java.lang.String id)
Description copied from interface:ISeriesSetSends the series for given id backward.- Specified by:
sendBackwardin interfaceISeriesSet- Parameters:
id- the series id
-
sendToBack
public void sendToBack(java.lang.String id)
Description copied from interface:ISeriesSetSends the series for given id to back.- Specified by:
sendToBackin interfaceISeriesSet- 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.
-
-