public class ConsensusTree extends ScoredTree
Constructor and Description |
---|
ConsensusTree(int index,
java.util.ArrayList<Tree> allTrees)
creates a consensus tree and calculates the score of each node
|
Modifier and Type | Method and Description |
---|---|
Element |
checkForNodes(int x,
int y,
org.eclipse.swt.widgets.Canvas can)
checks if there is a node at the position defined by x and y on the canvas.
|
void |
draw(org.eclipse.swt.widgets.Canvas can,
OurColormap colormap)
draws the consensus tree onto the provided canvas using the provided colors
|
void |
markNodes(Element referenceElement,
org.eclipse.swt.widgets.Canvas can)
highlights the nodes on the consensus tree, that are equal to the passed reference tree and its children
|
public ConsensusTree(int index, java.util.ArrayList<Tree> allTrees)
index
- index of the consensus tree in the tree listallTrees
- all treespublic void draw(org.eclipse.swt.widgets.Canvas can, OurColormap colormap)
can
- canvas on which the tree will be drawncolormap
- color palette to be used to code the scorespublic Element checkForNodes(int x, int y, org.eclipse.swt.widgets.Canvas can)
x
- x coordinatey
- y coordinatecan
- canvaspublic void markNodes(Element referenceElement, org.eclipse.swt.widgets.Canvas can)
referenceElement
- node of interestcan
- canvas