Interface ColumnHandlerFactory.ColumnHandler
- Enclosing class:
- ColumnHandlerFactory
public static interface ColumnHandlerFactory.ColumnHandler
Holds a table column. Allows access to the column's data
and the underlying table.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTableUpdateListener(Function<DynamicTable, InstrumentedListenerAdapter> listenerFunction) get(int i) Gets the object in rowiof the column.Gets the column's name.doublegetDouble(int i) Gets the object in rowiof the column as a double.org.jfree.data.RangegetRange()Gets theRangeof the column.Gets the handle for the underlying table.voidonClose()Tear down once a figure is removed.intsize()Gets the number of rows in the column.voidtype()Gets the data type of the column.Gets the column'sColumnHandlerFactory.TypeClassification.
-
Method Details
-
getTableHandle
TableHandle getTableHandle()Gets the handle for the underlying table.- Returns:
- handle for the table
-
getColumnName
String getColumnName()Gets the column's name.- Returns:
- name of the column being held
-
size
int size()Gets the number of rows in the column.- Returns:
- size of the column
-
get
Gets the object in rowiof the column.- Parameters:
i- index- Returns:
- object in row
iof the column
-
type
Class type()Gets the data type of the column.- Returns:
- column's data type
-
typeClassification
ColumnHandlerFactory.TypeClassification typeClassification()Gets the column'sColumnHandlerFactory.TypeClassification.- Returns:
- column's
ColumnHandlerFactory.TypeClassification
-
getDouble
double getDouble(int i) Gets the object in rowiof the column as a double.- Parameters:
i- index- Returns:
- column's value at row
ias a double - Throws:
UnsupportedOperationException- if the value in the column can not be converted to double
-
getRange
org.jfree.data.Range getRange()Gets theRangeof the column.- Returns:
Rangeof the column
-
sort
-
addTableUpdateListener
-
onClose
void onClose()Tear down once a figure is removed.
-