org.jfree.data.xy
public class XYDatasetTableModel extends AbstractTableModel implements TableModel, DatasetChangeListener
TO DO:
Constructor Summary | |
---|---|
XYDatasetTableModel()
Default constructor. | |
XYDatasetTableModel(TableXYDataset dataset)
Creates a new table model based on the specified dataset.
|
Method Summary | |
---|---|
void | datasetChanged(DatasetChangeEvent event)
Receives notification that the underlying dataset has changed.
|
int | getColumnCount()
Gets the number of columns in the model.
|
String | getColumnName(int column)
Returns the column name.
|
int | getRowCount()
Returns the number of rows.
|
Object | getValueAt(int row, int column)
Returns a value of the specified cell.
|
boolean | isCellEditable(int row, int column)
Returns a flag indicating whether or not the specified cell is editable.
|
void | setModel(TableXYDataset dataset)
Sets the model (dataset).
|
void | setValueAt(Object value, int row, int column)
Updates the XYDataset if allowed.
|
Parameters: dataset the dataset.
Parameters: event the event
See Also: DatasetChangeListener
Returns: The number of columns in the model.
Parameters: column the column index.
Returns: The column name.
Returns: The row count.
Parameters: row the row number. column the column number.
Returns: The value of the specified cell.
Parameters: row the row number. column the column number.
Returns: true
if the specified cell is editable.
Parameters: dataset the dataset.
Parameters: value the new value. row the row. column the column.