pal.gui
Class PositionedNode

java.lang.Object
  extended by pal.tree.SimpleNode
      extended by pal.gui.PositionedNode
All Implemented Interfaces:
java.io.Serializable, AttributeNode, Node

public class PositionedNode
extends SimpleNode

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

Version:
$Id: PositionedNode.java,v 1.6 2002/01/14 04:18:13 matt Exp $
Author:
Alexei Drummond
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, 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()