public interface DataSource extends Iterable<Comparable<?>>
MutableDataSource
Modifier and Type | Method and Description |
---|---|
void |
addDataListener(DataListener dataListener)
Adds the specified
DataListener to this data source. |
Comparable<?> |
get(int col,
int row)
Returns the value with the specified row and column index.
|
Column |
getColumn(int col)
Returns the column with the specified index.
|
int |
getColumnCount()
Returns the number of columns of the data source.
|
Class<? extends Comparable<?>>[] |
getColumnTypes()
Returns the data types of all columns.
|
Row |
getRow(int row)
Returns the row with the specified index.
|
int |
getRowCount()
Returns the number of rows of the data source.
|
Statistics |
getStatistics()
Retrieves a object instance that contains various statistical
information on the current data source.
|
boolean |
isColumnNumeric(int columnIndex)
Returns whether the column at the specified index contains numbers.
|
void |
removeDataListener(DataListener dataListener)
Removes the specified
DataListener from this data source. |
Column getColumn(int col)
col
- index of the column to returnClass<? extends Comparable<?>>[] getColumnTypes()
Row getRow(int row)
row
- index of the row to returnComparable<?> get(int col, int row)
col
- index of the column to returnrow
- index of the row to returnStatistics getStatistics()
int getRowCount()
int getColumnCount()
boolean isColumnNumeric(int columnIndex)
columnIndex
- Index of the column to test.true
if the column is numeric, otherwise false
.void addDataListener(DataListener dataListener)
DataListener
to this data source.dataListener
- listener to be added.void removeDataListener(DataListener dataListener)
DataListener
from this data source.dataListener
- listener to be removed.Copyright © 2009-2013. All Rights Reserved.