public class ComparisonTree extends ScoredTree
Constructor and Description |
---|
ComparisonTree(Tree consensusTree,
Tree tree)
creates a comparison tree and calculates the score of each node using the consensus tree
|
Modifier and Type | Method and Description |
---|---|
void |
draw(org.eclipse.swt.widgets.Canvas can,
OurColormap colormap,
int startx1,
int starty1,
int endx,
int endy)
draws the comparison tree on the provided canvas into the field whose boundaries are given by the x and y values
|
void |
markNodes(Element referenceElement,
org.eclipse.swt.widgets.Canvas can,
int startx1,
int starty1,
int endx,
int endy)
highlightes the nodes, which are equal to the reference element or its children
|
public void draw(org.eclipse.swt.widgets.Canvas can, OurColormap colormap, int startx1, int starty1, int endx, int endy)
can
- canvas on which the tree will be drawncolormap
- color pallete to be used to encode the scoresstartx1
- x1starty1
- y1endx
- x2endy
- y2public void markNodes(Element referenceElement, org.eclipse.swt.widgets.Canvas can, int startx1, int starty1, int endx, int endy)
referenceElement
- reference elementcan
- canvasstartx1
- x1starty1
- y1endx
- x2endy
- y2