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 classSeriesCollection.SeriesDescriptionDescription of a data series.static classSeriesCollection.SeriesTypeType of data series. -
Constructor Summary
Constructors Constructor Description SeriesCollection(PlotInfo plotInfo) -
Method Summary
Modifier and Type Method Description voidadd(SeriesCollection.SeriesType type, boolean isMultiSeries, SeriesInternal series)Add a new Series.SeriesCollectioncopy(AxesImpl axes)Creates a copy of this series collection on a new set of axes.PlotInfogetPlotInfo()Map<Comparable,SeriesCollection.SeriesDescription>getSeriesDescriptions()Gets the descriptions of the series in the collection.Set<SwappableTable>getSwappableTables()voidonClose()Tear down once figure is closed.voidonInflate()Set up after serialization.voidremove(Comparable... names)Removes the series with the specifiednames.SeriesInternalseries(int id)Gets the series with the given series ID.SeriesInternalseries(Comparable name)Gets the series with the given series name.
-
Constructor Details
-
Method Details
-
getPlotInfo
- Specified by:
getPlotInfoin 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.
-