|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
weka.gui.CostMatrixEditor.CostMatrixTableModel
This class wraps around the cost matrix presenting it as a TableModel so that it can be displayed and edited in a JTable.
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
private |
CostMatrixEditor.CostMatrixTableModel()
|
Method Summary | |
java.lang.Class |
getColumnClass(int columnIndex)
Indicates the class of the objects within a column of the table. |
int |
getColumnCount()
Gets the number of columns in the matrix. |
int |
getRowCount()
Gets the number of rows in the matrix. |
java.lang.Object |
getValueAt(int row,
int column)
Returns a value at the specified position in the cost matrix. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Indicates whether a cell in the table is editable. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets a value at a specified position in the cost matrix. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private CostMatrixEditor.CostMatrixTableModel()
Method Detail |
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int column)
row
- the row positioncolumn
- the column position
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
aValue
- the new value (should be of type Double).rowIndex
- the row positioncolumnIndex
- the column positionpublic boolean isCellEditable(int rowIndex, int columnIndex)
rowIndex
- the row positioncolumnIndex
- the column position
public java.lang.Class getColumnClass(int columnIndex)
columnIndex
- the column position
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |