public class SeriesSet extends java.lang.Object implements ISeriesSet
Modifier and Type | Field and Description |
---|---|
private Chart |
chart
the chart
|
private java.util.LinkedHashMap<java.lang.String,Series> |
seriesMap
the series
|
Modifier and Type | Method and Description |
---|---|
void |
bringForward(java.lang.String id)
Brings the series for given id forward.
|
void |
bringToFront(java.lang.String id)
Brings the series for given id to front.
|
void |
compressAllSeries()
Compresses all series data.
|
ISeries |
createSeries(ISeries.SeriesType type,
java.lang.String id)
Creates the series.
|
void |
deleteSeries(java.lang.String id)
Deletes the series for given id.
|
void |
dispose()
Disposes the series.
|
ISeries[] |
getSeries()
Gets the array of series
|
ISeries |
getSeries(java.lang.String id)
Gets the series for given id.
|
void |
sendBackward(java.lang.String id)
Sends the series for given id backward.
|
void |
sendToBack(java.lang.String id)
Sends the series for given id to back.
|
private static void |
setStackSeries(double[] stackSeries,
ISeries series)
Sets the stack series.
|
void |
updateCompressor(Axis axis)
Updates the compressor associated with the given axis.
|
void |
updateStackAndRiserData()
Updates the stack and riser data.
|
private void |
updateStackAndRiserData(IAxis xAxis,
IAxis yAxis)
Updates the stack and riser data for given axes.
|
private java.lang.String |
validateSeriesId(java.lang.String id)
Validates the given series id.
|
private final Chart chart
private java.util.LinkedHashMap<java.lang.String,Series> seriesMap
public SeriesSet(Chart chart)
chart
- the chartpublic ISeries createSeries(ISeries.SeriesType type, java.lang.String id)
ISeriesSet
createSeries
in interface ISeriesSet
type
- the series typeid
- the id for seriespublic ISeries getSeries(java.lang.String id)
ISeriesSet
getSeries
in interface ISeriesSet
id
- the id for seriespublic ISeries[] getSeries()
ISeriesSet
getSeries
in interface ISeriesSet
public void deleteSeries(java.lang.String id)
ISeriesSet
deleteSeries
in interface ISeriesSet
id
- the series idpublic void bringForward(java.lang.String id)
ISeriesSet
bringForward
in interface ISeriesSet
id
- the series idpublic void bringToFront(java.lang.String id)
ISeriesSet
bringToFront
in interface ISeriesSet
id
- the series idpublic void sendBackward(java.lang.String id)
ISeriesSet
sendBackward
in interface ISeriesSet
id
- the series idpublic void sendToBack(java.lang.String id)
ISeriesSet
sendToBack
in interface ISeriesSet
id
- the series idpublic void dispose()
private java.lang.String validateSeriesId(java.lang.String id)
id
- the series id.public void compressAllSeries()
public void updateCompressor(Axis 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.
axis
- the axispublic void updateStackAndRiserData()
private void updateStackAndRiserData(IAxis xAxis, IAxis yAxis)
xAxis
- the X axisyAxis
- the Y axisprivate static void setStackSeries(double[] stackSeries, ISeries series)
stackSeries
- the stack seriesseries
- the series