pal.tree
Class TreeManipulator.PALNodeWrapper
java.lang.Object
pal.tree.TreeManipulator.PALNodeWrapper
- Enclosing class:
- TreeManipulator
public static final class TreeManipulator.PALNodeWrapper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeManipulator.PALNodeWrapper
public TreeManipulator.PALNodeWrapper(Node peer)
TreeManipulator.PALNodeWrapper
public TreeManipulator.PALNodeWrapper(Node peer,
TreeManipulator.PALNodeWrapper parent)
getAnnotation
public java.lang.Object getAnnotation()
getLabel
public java.lang.String getLabel()
isLeaf
public boolean isLeaf()
getNumberOfChildren
public int getNumberOfChildren()
getChild
public pal.tree.TreeManipulator.SimpleNode getChild(int child)
getParentBranch
public pal.tree.TreeManipulator.SimpleBranch getParentBranch()
getPALPeer
public Node getPALPeer()
getParentBranchLength
public double getParentBranchLength()
- Obtain the length of the parent branch (or 0 if no parent branch)
- Returns:
- the approriate length