use of edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeDrawerNode in project clusterMaker2 by RBVI.
the class ATRView method selectParent.
private void selectParent() {
TreeDrawerNode current = selectedNode;
selectedNode = current.getParent();
if (selectedNode == null) {
selectedNode = current;
return;
}
if (current == selectedNode.getLeft())
current = selectedNode.getRight();
else
current = selectedNode.getLeft();
drawer.paintSubtree(offscreenGraphics, xScaleEq, yScaleEq, destRect, current, true);
drawer.paintSingle(offscreenGraphics, xScaleEq, yScaleEq, destRect, selectedNode, true);
synchMap();
repaint();
}
use of edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeDrawerNode in project clusterMaker2 by RBVI.
the class ATRView method selectRight.
private void selectRight() {
if (selectedNode.isLeaf()) {
return;
}
TreeDrawerNode current = selectedNode;
selectedNode = current.getRight();
drawer.paintSingle(offscreenGraphics, xScaleEq, yScaleEq, destRect, current, false);
drawer.paintSubtree(offscreenGraphics, xScaleEq, yScaleEq, destRect, current.getLeft(), false);
synchMap();
repaint();
}
Aggregations