Class IndexableNumericData
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableNumericData
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
- Direct Known Subclasses:
IndexableNumericDataArrayDate
,IndexableNumericDataArrayDBDateTime
,IndexableNumericDataArrayDouble
,IndexableNumericDataArrayFloat
,IndexableNumericDataArrayInt
,IndexableNumericDataArrayLong
,IndexableNumericDataArrayNumber
,IndexableNumericDataArrayShort
,IndexableNumericDataListNumber
,LiveIndexableNumericData
public abstract class IndexableNumericData extends Object implements PlotExceptionCause, Serializable
Dataset with indexed numeric values.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableNumericData(PlotInfo plotInfo)
-
Method Summary
Modifier and Type Method Description Spliterator.OfDouble
doubleIterator()
Gets the iterator over this dataset.abstract double
get(int index)
Gets the value at the specifiedindex
as a double.PlotInfo
getPlotInfo()
org.jfree.data.Range
getRange()
Gets the range of values.void
onClose()
Tear down once a figure is removed.abstract int
size()
Gets the size of this dataset.DoubleStream
stream()
Gets the values of this dataset as a stream of doubles.
-
Constructor Details
-
IndexableNumericData
- Parameters:
plotInfo
- plot information
-
-
Method Details
-
getPlotInfo
- Specified by:
getPlotInfo
in interfacePlotExceptionCause
-
size
public abstract int size()Gets the size of this dataset.- Returns:
- size of this dataset
-
get
public abstract double get(int index)Gets the value at the specifiedindex
as a double.- Parameters:
index
- index- Returns:
- value at
index
as a double
-
getRange
public org.jfree.data.Range getRange()Gets the range of values. Default implementation assumes array backed data. Should be overridden for Table backed data.- Returns:
- range of values
-
doubleIterator
Gets the iterator over this dataset.- Returns:
- dataset iterator
-
stream
Gets the values of this dataset as a stream of doubles.- Returns:
- stream of this dataset's values as doubles
-
onClose
public void onClose()Tear down once a figure is removed.
-