org.acm.seguin.metrics
Class MetricsFrame

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.acm.seguin.metrics.MetricsFrame
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
MethodMetricsFrame, PackageMetricsFrame, ProjectMetricsFrame, TypeMetricsFrame

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

Base class for metrics frame

Author:
Chris Seguin
See Also:
Serialized Form

Field Summary
protected  java.lang.String[] descriptions
          Description of the Field
protected  java.lang.String[] values
          Description of the Field
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
MetricsFrame()
           
 
Method Summary
protected  void createFrame()
          Create the frame
 int getColumnCount()
          Get the number of columns in the table
 int getRowCount()
          Get the number of rows in the table
protected abstract  java.lang.String getTitle()
          Returns the title of this frame
 java.lang.Object getValueAt(int row, int column)
          Get the value at a particular spot in the table
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, 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

descriptions

protected java.lang.String[] descriptions
Description of the Field


values

protected java.lang.String[] values
Description of the Field

Constructor Detail

MetricsFrame

public MetricsFrame()
Method Detail

getRowCount

public int getRowCount()
Get the number of rows in the table

Returns:
The number of rows

getColumnCount

public int getColumnCount()
Get the number of columns in the table

Returns:
the number of columns

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Get the value at a particular spot in the table

Parameters:
row - The row index
column - The column index
Returns:
The value at that location

getTitle

protected abstract java.lang.String getTitle()
Returns the title of this frame

Returns:
The Title value

createFrame

protected void createFrame()
Create the frame