Package com.illumon.iris.db.plot
Class SeriesCollection
java.lang.Object
com.illumon.iris.db.plot.SeriesCollection
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
public class SeriesCollection extends Object implements Serializable, PlotExceptionCause
A collection of data series.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SeriesCollection.SeriesDescription
Description of a data series.static class
SeriesCollection.SeriesType
Type of data series. -
Constructor Summary
Constructors Constructor Description SeriesCollection(PlotInfo plotInfo)
-
Method Summary
Modifier and Type Method Description void
add(SeriesCollection.SeriesType type, boolean isMultiSeries, SeriesInternal series)
Add a new Series.SeriesCollection
copy(AxesImpl axes)
Creates a copy of this series collection on a new set of axes.PlotInfo
getPlotInfo()
Map<Comparable,SeriesCollection.SeriesDescription>
getSeriesDescriptions()
Gets the descriptions of the series in the collection.Set<SwappableTable>
getSwappableTables()
void
onClose()
Tear down once figure is closed.void
onInflate()
Set up after serialization.void
remove(Comparable... names)
Removes the series with the specifiednames
.SeriesInternal
series(int id)
Gets the series with the given series ID.SeriesInternal
series(Comparable name)
Gets the series with the given series name.
-
Constructor Details
-
Method Details
-
getPlotInfo
- Specified by:
getPlotInfo
in interfacePlotExceptionCause
-
copy
Creates a copy of this series collection on a new set of axes.- Parameters:
axes
- axes to create a copy of this series on.- Returns:
- copy of the series collection on the new set of axes.
-
getSeriesDescriptions
Gets the descriptions of the series in the collection. The result is a map between series name and description.- Returns:
- descriptions of the series in the collection
-
series
Gets the series with the given series ID.- Parameters:
id
- series id- Returns:
- series
-
series
Gets the series with the given series name.- Parameters:
name
- series name- Returns:
- series
-
getSwappableTables
-
add
Add a new Series.- Parameters:
type
- type of seriesisMultiSeries
- true for multi-series; false for standard mono-series.series
- series
-
remove
Removes the series with the specifiednames
.- Parameters:
names
- series names
-
onInflate
public void onInflate()Set up after serialization. -
onClose
public void onClose()Tear down once figure is closed.
-