pal.tree
Class TreeManipulator.PALNodeWrapper

java.lang.Object
  extended by pal.tree.TreeManipulator.PALNodeWrapper
Enclosing class:
TreeManipulator

public static final class TreeManipulator.PALNodeWrapper
extends java.lang.Object


Constructor Summary
TreeManipulator.PALNodeWrapper(Node peer)
           
TreeManipulator.PALNodeWrapper(Node peer, TreeManipulator.PALNodeWrapper parent)
           
 
Method Summary
 java.lang.Object getAnnotation()
           
 pal.tree.TreeManipulator.SimpleNode getChild(int child)
           
 java.lang.String getLabel()
           
 int getNumberOfChildren()
           
 Node getPALPeer()
           
 pal.tree.TreeManipulator.SimpleBranch getParentBranch()
           
 double getParentBranchLength()
          Obtain the length of the parent branch (or 0 if no parent branch)
 boolean isLeaf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeManipulator.PALNodeWrapper

public TreeManipulator.PALNodeWrapper(Node peer)

TreeManipulator.PALNodeWrapper

public TreeManipulator.PALNodeWrapper(Node peer,
                                      TreeManipulator.PALNodeWrapper parent)
Method Detail

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