Package org.opensourcephysics.display2d
Class GridTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.opensourcephysics.display2d.GridTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of columns.getColumnName
(int c) Gets the number of columns.int
Gets the number of rows.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
-
Constructor Details
-
GridTableModel
Constructor GridTableModel- Parameters:
griddata
-component
-
-
-
Method Details
-
getColumnCount
public int getColumnCount()Gets the number of columns.- Returns:
- int
-
getColumnName
Gets the number of columns.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Returns:
- int
-
getRowCount
public int getRowCount()Gets the number of rows.- Returns:
- int
-
getValueAt
Gets the value at the given grid location.- Parameters:
rowIndex
- intcolumnIndex
- int- Returns:
- Object
-