pal.gui
Class PositionedNode

java.lang.Object
  |
  +--pal.tree.SimpleNode
        |
        +--pal.gui.PositionedNode
All Implemented Interfaces:
AttributeNode, Node, java.io.Serializable

public class PositionedNode
extends SimpleNode

A tree node that has a scalar position for the purposes of drawing the tree.

See Also:
Serialized Form

Field Summary
protected  double x
           
 
Fields inherited from interface pal.tree.AttributeNode
CLADE_PROBABILITY, MEAN_CLADE_HEIGHT, NODE_HEIGHT_SE, SUBTREE_PROBABILITY
 
Constructor Summary
PositionedNode(Node node)
           
PositionedNode(Node node, Node highlightNode)
          Builds a tree based on node, but highlights highlightNode
 
Method Summary
 void calculatePositions()
           
 Node getPeer()
           
 double getX()
           
 boolean isHighlighted()
           
 
Methods inherited from class pal.tree.SimpleNode
addChild, getAttribute, getAttributeNames, getBranchLength, getBranchLengthSE, getChild, getChildCount, getIdentifier, getNodeHeight, getNumber, getParent, getSequence, getSequenceString, hasChildren, init, init, init, insertChild, isLeaf, isRoot, lengths2HeightsContemp, removeChild, removeParent, reset, setAttribute, setBranchLength, setBranchLengthSE, setChild, setIdentifier, setNodeHeight, setNumber, setParent, setSequence, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

protected double x
Constructor Detail

PositionedNode

public PositionedNode(Node node,
                      Node highlightNode)
Builds a tree based on node, but highlights highlightNode

PositionedNode

public PositionedNode(Node node)
Method Detail

calculatePositions

public void calculatePositions()

getPeer

public Node getPeer()

isHighlighted

public boolean isHighlighted()

getX

public double getX()