Package pal.gui
Class PositionedNode
- java.lang.Object
-
- pal.tree.SimpleNode
-
- 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
Fields Modifier and Type Field Description protected double
x
-
Fields inherited from interface pal.tree.AttributeNode
CLADE_PROBABILITY, MEAN_CLADE_HEIGHT, NODE_HEIGHT_SE, SUBTREE_PROBABILITY
-
-
Constructor Summary
Constructors Constructor Description PositionedNode(Node node)
PositionedNode(Node node, Node highlightNode)
Builds a tree based on node, but highlights highlightNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
calculatePositions
public void calculatePositions()
-
getPeer
public Node getPeer()
-
isHighlighted
public boolean isHighlighted()
-
getX
public double getX()
-
-