org.opensourcephysics.display2d
Class GridTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.opensourcephysics.display2d.GridTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class GridTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
GridTableModel(GridData griddata, int component)
           
 
Method Summary
 int getColumnCount()
          Gets the number of columns.
 java.lang.String getColumnName(int c)
          Gets the number of columns.
 int getRowCount()
          Gets the number of rows.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Gets the value at the given grid location.
 
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
 

Constructor Detail

GridTableModel

public GridTableModel(GridData griddata,
                      int component)
Method Detail

getColumnCount

public int getColumnCount()
Gets the number of columns.

Returns:
int

getColumnName

public java.lang.String getColumnName(int c)
Gets the number of columns.

Returns:
int

getRowCount

public int getRowCount()
Gets the number of rows.

Returns:
int

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Gets the value at the given grid location.

Parameters:
rowIndex - int
columnIndex - int
Returns:
Object