Class SortedIndexableNumericDataTable
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableNumericData
com.illumon.iris.db.plot.datasets.data.LiveIndexableNumericData
com.illumon.iris.db.plot.datasets.data.SortedIndexableNumericDataTable
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
public class SortedIndexableNumericDataTable extends LiveIndexableNumericData
IndexableData
dataset whose data is a column in a table
and whose indices are the row numbers of the column.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SortedIndexableNumericDataTable(ColumnHandlerFactory.ColumnHandler columnHandler, String columnToSortBy, PlotInfo plotInfo)
Creates an SortedIndexableDataTable instance. -
Method Summary
Modifier and Type Method Description double
get(int index)
Gets the value at the specifiedindex
as a double.org.jfree.data.Range
getRange()
Gets the range of values.void
onClose()
Tear down once a figure is removed.void
setOnAdd(DoubleIntegerConsumer onAdd)
void
setOnModify(DoubleIntegerConsumer onModify)
void
setOnRemove(DoubleIntegerConsumer onRemove)
int
size()
Gets the size of this dataset.IndexableNumericData
snapshot()
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableNumericData
doubleIterator, getPlotInfo, stream
-
Constructor Details
-
SortedIndexableNumericDataTable
public SortedIndexableNumericDataTable(ColumnHandlerFactory.ColumnHandler columnHandler, String columnToSortBy, PlotInfo plotInfo)Creates an SortedIndexableDataTable instance.- Parameters:
columnHandler
- datacolumnToSortBy
- column to sort the underlying table byplotInfo
- plot information- Throws:
com.fishlib.base.verify.RequirementFailure
-columnHandler
must not be null
-
-
Method Details
-
size
public int size()Description copied from class:IndexableNumericData
Gets the size of this dataset.- Specified by:
size
in classIndexableNumericData
- Returns:
- size of this dataset
-
get
public double get(int index)Description copied from class:IndexableNumericData
Gets the value at the specifiedindex
as a double.- Specified by:
get
in classIndexableNumericData
- Parameters:
index
- index- Returns:
- value at
index
as a double
-
getRange
public org.jfree.data.Range getRange()Description copied from class:IndexableNumericData
Gets the range of values. Default implementation assumes array backed data. Should be overridden for Table backed data.- Overrides:
getRange
in classIndexableNumericData
- Returns:
- range of values
-
setOnAdd
-
setOnRemove
-
setOnModify
-
onClose
public void onClose()Description copied from class:IndexableNumericData
Tear down once a figure is removed.- Overrides:
onClose
in classIndexableNumericData
-
snapshot
- Specified by:
snapshot
in classLiveIndexableNumericData
-