anl.aida.table
Class AbstractDataFrameTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by anl.aida.table.AbstractDataFrameTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
TCategoryDataFrameTableModel, TVDataFrameTableModel

public abstract class AbstractDataFrameTableModel
extends javax.swing.table.AbstractTableModel

Abstract base class for table models based on DataFrames.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
protected  int colCount
           
protected  int colNameOffset
           
protected  java.lang.String[] colNames
           
protected  anl.aida.data.DataFrame frame
           
protected  int rowCount
           
protected  int rowNameOffset
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AbstractDataFrameTableModel(anl.aida.data.DataFrame frame)
           
 
Method Summary
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int column)
           
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

protected anl.aida.data.DataFrame frame

colCount

protected int colCount

rowCount

protected int rowCount

colNames

protected java.lang.String[] colNames

colNameOffset

protected int colNameOffset

rowNameOffset

protected int rowNameOffset
Constructor Detail

AbstractDataFrameTableModel

public AbstractDataFrameTableModel(anl.aida.data.DataFrame frame)
Method Detail

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)

getColumnCount

public int getColumnCount()
Returns the number of columns in the model. A JTable uses this method to determine how many columns it should create and display by default.

Returns:
the number of columns in the model
See Also:
getRowCount()

getRowCount

public int getRowCount()
Returns the number of rows in the model. A JTable uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.

Returns:
the number of rows in the model
See Also:
getColumnCount()