|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--com.jrefinery.data.TimeSeriesTableModel
Wrapper around a time series to convert it to a table model for use in a JTable.
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
TimeSeriesTableModel()
Default constructor. |
|
TimeSeriesTableModel(BasicTimeSeries series)
Constructs a table model for a time series. |
|
TimeSeriesTableModel(BasicTimeSeries series,
boolean editable)
Creates a table model based on a time series. |
Method Summary | |
java.lang.Class |
getColumnClass(int column)
Returns the column class in the table model. |
int |
getColumnCount()
Returns the number of columns in the table model. |
java.lang.String |
getColumnName(int column)
Returns the name of a column |
int |
getRowCount()
Returns the number of rows in the table model. |
java.lang.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(java.lang.Object value,
int row,
int column)
Updates the time series. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeSeriesTableModel()
public TimeSeriesTableModel(BasicTimeSeries series)
series
- the time series.public TimeSeriesTableModel(BasicTimeSeries series, boolean editable)
series
- the time series.editable
- if Method Detail |
public int getColumnCount()
getColumnCount
in class javax.swing.table.AbstractTableModel
public java.lang.Class getColumnClass(int column)
getColumnClass
in class javax.swing.table.AbstractTableModel
column
- The column index.public java.lang.String getColumnName(int column)
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column index.public int getRowCount()
getRowCount
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int column)
getValueAt
in class javax.swing.table.AbstractTableModel
row
- The row number.column
- The column number.public boolean isCellEditable(int row, int column)
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- the row number.column
- the column number.true
if the specified cell is editable.public void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in class javax.swing.table.AbstractTableModel
value
- the new value.row
- the row.column
- the column.public void seriesChanged(SeriesChangeEvent event)
seriesChanged
in interface SeriesChangeListener
event
- the event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |