|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.jfree.data.time.TimeSeriesTableModel
public class TimeSeriesTableModel
Wrapper around a time series to convert it to a table model for use in
a JTable
.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
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. |
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, getTableModelListeners, 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(TimeSeries series)
series
- the time series.public TimeSeriesTableModel(TimeSeries series, boolean editable)
series
- the time series.editable
- if Method Detail |
---|
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Class getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
column
- The column index.
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column index.
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int row, int column)
getValueAt
in interface javax.swing.table.TableModel
row
- the row number.column
- the column number.
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
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 interface javax.swing.table.TableModel
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.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |