public class TimeSeriesTableModel extends AbstractTableModel implements SeriesChangeListener
JTable
.Constructor and Description |
---|
TimeSeriesTableModel()
Default constructor.
|
TimeSeriesTableModel(TimeSeries series)
Constructs a table model for a time series.
|
TimeSeriesTableModel(TimeSeries series,
boolean editable)
Creates a table model based on a time series.
|
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int column)
Returns the column class in the table model.
|
int |
getColumnCount()
Returns the number of columns in the table model.
|
String |
getColumnName(int column)
Returns the name of a column
|
int |
getRowCount()
Returns the number of rows in the table model.
|
Object |
getValueAt(int row,
int column)
Returns the data value for a cell in the table model.
|
boolean |
isCellEditable(int row,
int column)
Returns a flag indicating whether or not the specified cell is editable.
|
void |
seriesChanged(SeriesChangeEvent event)
Receives notification that the time series has been changed.
|
void |
setValueAt(Object value,
int row,
int column)
Updates the time series.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public TimeSeriesTableModel()
public TimeSeriesTableModel(TimeSeries series)
series
- the time series.public TimeSeriesTableModel(TimeSeries series, boolean editable)
series
- the time series.editable
- if true
, the table is editable.public int getColumnCount()
getColumnCount
in interface TableModel
public Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
column
- the column index.public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column index.public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
row
- the row number.column
- the column number.public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
row
- the row number.column
- the column number.true
if the specified cell is editable.public void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
value
- the new value.row
- the row.column
- the column.public void seriesChanged(SeriesChangeEvent event)
seriesChanged
in interface SeriesChangeListener
event
- the event.Jas4pp 1.5 © Java Analysis Studio for Particle Physics