public class DummyData extends AbstractDataSource
Constructor and Description |
---|
DummyData(int cols,
int rows,
Comparable<?> value)
Creates a new instance with the specified number of columns
and rows, which are filled all over with the same specified value.
|
Modifier and Type | Method and Description |
---|---|
Comparable<?> |
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.
|
addDataListener, getColumn, getColumnTypes, getRow, getStatistics, isColumnNumeric, iterator, notifyDataAdded, notifyDataRemoved, notifyDataUpdated, removeDataListener, setColumnTypes
public DummyData(int cols, int rows, Comparable<?> value)
cols
- Number of columns.rows
- Number of rows.value
- Value of the cells.public Comparable<?> get(int col, int row)
col
- index of the column to returnrow
- index of the row to returnpublic int getColumnCount()
AbstractDataSource
getColumnCount
in interface DataSource
getColumnCount
in class AbstractDataSource
public int getRowCount()
Copyright © 2009-2013. All Rights Reserved.