public class TimeSeriesTableModel extends AbstractTableModel implements SeriesChangeListener
JTable.listenerList| 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, removeTableModelListenerpublic 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 TableModelpublic Class getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - the column index.public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column index.public int getRowCount()
getRowCount in interface TableModelpublic Object getValueAt(int row, int column)
getValueAt in interface TableModelrow - the row number.column - the column number.public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - 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 TableModelsetValueAt in class AbstractTableModelvalue - the new value.row - the row.column - the column.public void seriesChanged(SeriesChangeEvent event)
seriesChanged in interface SeriesChangeListenerevent - the event.Copyright © 2001–2017 JFree.org. All rights reserved.