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(); } } }
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); }
void clearTree() { if (origTree != null) { setStateRecursive(origTree, (PhyloNode) origTree.getRoot(), PhyloNode.NONE); origTree = null; } }