|
||||||||||
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.DummyData
public class DummyData
Class that represents a DataSource containing the same value in each cell.
Constructor Summary | |
---|---|
DummyData(int cols,
int rows,
Number value)
Creates a new DummyData object with the specified number of columns and rows, which are filled all over with the same specified value. |
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 DummyData(int cols, int rows, Number value)
cols
- Number of columns.rows
- Number of rows.value
- Value of the cells.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 |