|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--InterDistanceModel
This class is used to set the intermediate result table data in the MP algorithm
Field Summary | |
protected java.lang.Object[][] |
distance
The distance matrix in the distance based algorithms |
protected java.lang.String[] |
names
The the names of the species |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
InterDistanceModel(FM fm)
Constructs the data with the FM algorithm. |
|
InterDistanceModel(FM fm,
int inRandom_i,
int inRandom_j)
Constructs the data with the FM algorithm. |
|
InterDistanceModel(NJ nj)
Constructs the data with the NJ algorithm. |
|
InterDistanceModel(NJ nj,
int inRandom_i,
int inRandom_j)
Constructs the data with the NJ algorithm. |
|
InterDistanceModel(UPGMA upgma)
Constructs the data with the UPGMA algorithm. |
|
InterDistanceModel(UPGMA upgma,
int inRandom_i,
int inRandom_j)
Constructs the data with the UPGMA algorithm. |
Method Summary | |
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 |
getCount()
Gets the number of the species. |
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. |
void |
update()
Updates and resets the random question cell row and column. |
void |
updateTable()
Updates the table so that the value in the row i and the column j equals to the value in the row j and the column i. |
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 |
protected java.lang.Object[][] distance
protected java.lang.String[] names
Constructor Detail |
public InterDistanceModel(UPGMA upgma, int inRandom_i, int inRandom_j)
upgma
- the UPGMA algorithminRandom_i
- the row index of the cell for pop up questions in the UPGMA algorithminRandom_j
- the column index of the cell for pop up questions in the UPGMA algorithmpublic InterDistanceModel(UPGMA upgma)
upgma
- the UPGMA algorithmpublic InterDistanceModel(NJ nj, int inRandom_i, int inRandom_j)
nj
- the NJ algorithminRandom_i
- the row index of the cell for pop up questions in the NJ algorithminRandom_j
- the column index of the cell for pop up questions in the NJ algorithmpublic InterDistanceModel(NJ nj)
nj
- the NJ algorithmpublic InterDistanceModel(FM fm, int inRandom_i, int inRandom_j)
fm
- the FM algorithminRandom_i
- the row index of the cell for pop up questions in the FM algorithminRandom_j
- the column index of the cell for pop up questions in the FM algorithmpublic InterDistanceModel(FM fm)
fm
- the FM algorithmMethod Detail |
public int getRowCount()
public int getColumnCount()
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 int getCount()
public void updateTable()
public void update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |