|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.data.AbstractDataSource
de.erichseifert.gral.data.RowSubset
public abstract class RowSubset
Abstract class that represents a view on several rows of a data source.
Constructor Summary | |
---|---|
RowSubset(DataSource original)
Creates a new instance with the specified data source |
Method Summary | |
---|---|
abstract boolean |
accept(Row row)
Tests whether the specified row is accepted by this DataSubset or not. |
void |
dataChanged(DataSource data)
Method that is invoked by objects that provide support for DataListeners. |
Number |
get(int col,
int row)
Returns the row with the specified index. |
int |
getColumnCount()
Returns the number of columns of the data source. |
Row |
getRow(int row)
Returns the row with the specified index. |
int |
getRowCount()
Returns the number of rows of the data source. |
Methods inherited from class de.erichseifert.gral.data.AbstractDataSource |
---|
addDataListener, getColumn, getStatistics, iterator, removeDataListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowSubset(DataSource original)
original
- DataSource to be filtered.Method Detail |
---|
public Row getRow(int row)
DataSource
getRow
in interface DataSource
getRow
in class AbstractDataSource
row
- index of the row to return
public Number get(int col, int row)
DataSource
get
in interface DataSource
col
- index of the column to returnrow
- index of the row to return
public int getColumnCount()
DataSource
getColumnCount
in interface DataSource
public int getRowCount()
DataSource
getRowCount
in interface DataSource
public void dataChanged(DataSource data)
DataListener
dataChanged
in interface DataListener
data
- data that has changedpublic abstract boolean accept(Row row)
row
- Row to be tested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |