public class Histogramm
extends java.lang.Object
Constructor and Description |
---|
Histogramm(int consIndex,
java.util.ArrayList<Tree> allTrees)
creates the histograms for each of the trees in reference to the chosen consensus tree
|
Modifier and Type | Method and Description |
---|---|
void |
draw(org.eclipse.swt.widgets.Canvas can,
OurColormap colormap)
draws the histograms onto the canvas using the provided colors
|
Tree |
getTree(int x,
int y,
org.eclipse.swt.widgets.Canvas can)
checks if there is a histogramm on the canvas at position (x, y) and returns the corresponding tree, if one is found
|
public Histogramm(int consIndex, java.util.ArrayList<Tree> allTrees)
consIndex
- index of the consensus treeallTrees
- all treespublic void draw(org.eclipse.swt.widgets.Canvas can, OurColormap colormap)
can
- canvascolormap
- color pallete to encode the scorespublic Tree getTree(int x, int y, org.eclipse.swt.widgets.Canvas can)
x
- x coordinatey
- y coordinatecan
- canvas