cct.chart.jfreechart
Class JFreeChartPanel.ChartTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by cct.chart.jfreechart.JFreeChartPanel.ChartTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
JFreeChartPanel

static class JFreeChartPanel.ChartTableModel
extends javax.swing.table.AbstractTableModel
implements javax.swing.table.TableModel


Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
JFreeChartPanel.ChartTableModel(int rows)
          Creates a new table model
 
Method Summary
 int getColumnCount()
          Returns the column count.
 java.lang.String getColumnName(int column)
          Returns the column name.
 int getRowCount()
          Returns the row count.
 java.lang.Object getValueAt(int row, int column)
          Returns the value at the specified cell in the table.
 void setValueAt(java.lang.Object value, int row, int column)
          Sets the value at the specified cell.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, isCellEditable, removeTableModelListener
 

Constructor Detail

JFreeChartPanel.ChartTableModel

public JFreeChartPanel.ChartTableModel(int rows)
Creates a new table model

Parameters:
rows - the row count.
Method Detail

getColumnCount

public int getColumnCount()
Returns the column count.

Specified by:
getColumnCount in interface javax.swing.table.TableModel
Returns:
7.

getRowCount

public int getRowCount()
Returns the row count.

Specified by:
getRowCount in interface javax.swing.table.TableModel
Returns:
The row count.

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Returns the value at the specified cell in the table.

Specified by:
getValueAt in interface javax.swing.table.TableModel
Parameters:
row - the row index.
column - the column index.
Returns:
The value.

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int column)
Sets the value at the specified cell.

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
value - the value.
row - the row index.
column - the column index.

getColumnName

public java.lang.String getColumnName(int column)
Returns the column name.

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
Parameters:
column - the column index.
Returns:
The column name.