|
||||||||||
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.EnumeratedData
public class EnumeratedData
Class that creates a new data source which adds a leading column containing the row number.
Constructor Summary | |
---|---|
EnumeratedData(DataSource original)
Initializes a new data source with an original data source. |
Method Summary | |
---|---|
Number |
get(int col,
int row)
Returns the row with the specified index. |
int |
getColumnCount()
Returns the number of columns of the data source. |
int |
getRowCount()
Returns the number of rows of the data source. |
Methods inherited from class de.erichseifert.gral.data.AbstractDataSource |
---|
addDataListener, getColumn, getRow, getStatistics, iterator, removeDataListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnumeratedData(DataSource original)
original
- Original data source.Method Detail |
---|
public Number get(int col, int row)
DataSource
col
- index of the column to returnrow
- index of the row to return
public int getColumnCount()
DataSource
public int getRowCount()
DataSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |