|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.matrix.model.MatrixController
public class MatrixController
| Constructor Summary | |
|---|---|
MatrixController()
Creates a new matrix controller |
|
| Method Summary | |
|---|---|
void |
buildColumns()
Traverses the character list and extracts the entity, quality, and additional entity from each one. |
void |
buildMatrix()
Gets the current list of characters and calls methods to build the rows and columns of the matrix |
void |
buildRows()
Traverses the character list and extracts the valid taxon from each one. |
java.lang.String |
getColumnHeader(int index)
|
java.util.ArrayList<MatrixColumn> |
getColumns()
|
int |
getNumColumns()
|
int |
getNumRows()
|
java.util.ArrayList<MatrixRow> |
getRows()
|
java.lang.Object |
getValueAt(int rowIndex,
int colIndex)
This method iterates through each character in the main data list and checks to see if it is a valid character for the given row and given column in the matrix. |
void |
initializeVars()
Creates new instances of all instance variables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixController()
| Method Detail |
|---|
public void initializeVars()
public void buildMatrix()
throws CharFieldException
CharFieldExceptionpublic void buildRows()
public void buildColumns()
public java.lang.Object getValueAt(int rowIndex,
int colIndex)
rowIndex - the number of the row being requestedcolIndex - the number of the column being requested
public java.lang.String getColumnHeader(int index)
index - the index of the column whose header is being requested
public int getNumRows()
public int getNumColumns()
public java.util.ArrayList<MatrixRow> getRows()
public java.util.ArrayList<MatrixColumn> getColumns()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||