예제 #1
0
 void clearCutNodes() {
   if (origTree != null) {
     if (origVertex != null && origVertex.getState() == PhyloNode.CUT) {
       origTree.deleteSubtree(origVertex);
       origTree.removeElbowsBelow(origTree.getRoot());
       setStateRecursive(origTree, (PhyloNode) origTree.getRoot(), PhyloNode.NONE);
       origVertex.found = false;
       origVertex = null;
       origTree.modPlus();
     }
   }
 }
예제 #2
0
 public void setClip(RootedTree tree, PhyloNode node) {
   setStateRecursive(tree, (PhyloNode) tree.getRoot(), PhyloNode.NONE);
   RootedTree clone = tree.cloneSubtree(node);
   newickString = TreeIO.createNHXString(clone);
   origTree = tree;
   origVertex = node;
   fireEvent(CLIPBOARD_UPDATED);
 }
예제 #3
0
 void clearTree() {
   if (origTree != null) {
     setStateRecursive(origTree, (PhyloNode) origTree.getRoot(), PhyloNode.NONE);
     origTree = null;
   }
 }