|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--ComputedDistanceModel
This class is used to set the computed distance table data in the FM algorithm.
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
ComputedDistanceModel(int inCount,
java.lang.String[] inNames,
double[][] inDistance)
Construct the object with the specified values. |
Method Summary | |
java.lang.Class |
getColumnClass(int c)
Overrides the method in the TableModel class and returns the class for each table column. |
int |
getColumnCount()
Overrides the method in the TableModel class and returns the column count of the table. |
java.lang.String |
getColumnName(int columnIndex)
Overrides the method in the TableModel class and returns the column names of the table. |
int |
getRowCount()
Overrides the method in the TableModel class and returns the row count of the table. |
java.lang.Object |
getValueAt(int row,
int col)
Overrides the method in the TableModel class and returns the value of each table cell. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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 |
public ComputedDistanceModel(int inCount, java.lang.String[] inNames, double[][] inDistance)
inCount
- the number of speciesinNames
- the names of the speciesinDistance
- the computed distance matrixMethod Detail |
public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int row, int col)
row
- the row whose value is to be queriedcol
- the column whose value is to be queried
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
columnIndex
- the index of the column
public java.lang.Class getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
c
- the index of the column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |