Class IndexableNumericDataTable
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.IndexableNumericDataTable
- All Implemented Interfaces:
PlotExceptionCause,Serializable
IndexableData dataset whose data is a column in a table
and whose indices are the row numbers of the column.
The column must be numeric.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndexableNumericDataTable(ColumnHandlerFactory.ColumnHandler columnHandler, PlotInfo plotInfo) Creates an IndexableNumericDataTable instance.IndexableNumericDataTable(TableHandle tableHandle, String column, PlotInfo plotInfo) Creates an IndexableNumericDataTable instance. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableNumericData
doubleIterator, getPlotInfo, stream
-
Constructor Details
-
IndexableNumericDataTable
public IndexableNumericDataTable(ColumnHandlerFactory.ColumnHandler columnHandler, PlotInfo plotInfo) Creates an IndexableNumericDataTable instance.- Parameters:
columnHandler- dataplotInfo- plot information- Throws:
com.fishlib.base.verify.RequirementFailure-columnHandlermust not be nullUnsupportedOperationException-columnHandlermust be numeric
-
IndexableNumericDataTable
Creates an IndexableNumericDataTable instance. The numeric data is acolumnin the table held bytableHandle. Indices are the row numbers of the column.- Parameters:
tableHandle- holds the tablecolumn- column of underlying table holding the data values- Throws:
com.fishlib.base.verify.RequirementFailure-tableHandleandcolumnmust not be nullIllegalArgumentException-columnmust be a column intableHandleUnsupportedOperationException-columnmust be numeric
-
-
Method Details
-
size
public int size()Description copied from class:IndexableNumericDataGets the size of this dataset.- Specified by:
sizein classIndexableNumericData- Returns:
- size of this dataset
-
get
public double get(int i) Description copied from class:IndexableNumericDataGets the value at the specifiedindexas a double.- Specified by:
getin classIndexableNumericData- Parameters:
i- index- Returns:
- value at
indexas a double
-
getRange
public org.jfree.data.Range getRange()Description copied from class:IndexableNumericDataGets the range of values. Default implementation assumes array backed data. Should be overridden for Table backed data.- Overrides:
getRangein classIndexableNumericData- Returns:
- range of values
-
getColumnHandler
-
onClose
public void onClose()Description copied from class:IndexableNumericDataTear down once a figure is removed.- Overrides:
onClosein classIndexableNumericData
-
snapshot
- Specified by:
snapshotin classLiveIndexableNumericData
-