|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
ptolemy.actor.gui.MatrixPane.MatrixAsTable
private static class MatrixPane.MatrixAsTable
This class provides an implementation of the TableModel interface for viewing matrix tokens. Each element of the matrix is represented as an instance of Token, so all matrix types are supported.
Field Summary | |
---|---|
private MatrixToken |
_matrix
The Matrix for which a Table Model is created. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
MatrixPane.MatrixAsTable(MatrixToken matrix)
Construct a table for the specified matrix. |
Method Summary | |
---|---|
int |
getColumnCount()
Get the column count of the Matrix. |
java.lang.String |
getColumnName(int columnIndex)
Get the name of the specified column, which is the column index as a string. |
int |
getRowCount()
Get the row count of the Matrix. |
java.lang.Object |
getValueAt(int row,
int column)
Get the specified entry from the matrix as a Token. |
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 |
---|
private MatrixToken _matrix
Constructor Detail |
---|
MatrixPane.MatrixAsTable(MatrixToken matrix)
matrix
- The matrix.Method Detail |
---|
public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row
- The row number.column
- The column number.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |