public class PhyloNode extends java.lang.Object
Constructor and Description |
---|
PhyloNode() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEdge(Edge<PhyloNode> inEdge) |
void |
addEdge(PhyloNode in2ndNode,
java.lang.Float inDistance) |
java.lang.Float |
distanceTo(PhyloNode inNode2)
Calculates the distance between two nodes in the tree.
|
java.lang.Double |
getAngle() |
java.util.List<PhyloNode> |
getChildNodes() |
java.awt.Color |
getColor() |
java.lang.Float |
getDistanceFromRoot() |
java.util.List<Edge<PhyloNode>> |
getEdges() |
java.lang.String |
getId() |
java.lang.String |
getLabel() |
java.util.List<Edge<PhyloNode>> |
getLeafFacingEdges()
Returns the leaf-facing edges.
|
protected java.lang.Integer |
getLineIndex() |
java.lang.Float |
getMaxDistanceToLeaf() |
Edge<PhyloNode> |
getParentEdge()
Returns the root-facing edge.
|
PhyloNode |
getParentNode() |
int |
getSubnodeCount() |
protected java.lang.Integer |
getVericalLineEndIndex() |
protected java.lang.Integer |
getVericalLineStartIndex() |
boolean |
isLeaf() |
void |
makeRoot() |
void |
orderEdgesByLeafCount() |
protected boolean |
removeEdge(Edge<PhyloNode> inEdge) |
protected boolean |
removeEdgeFrom(PhyloNode inNode) |
PhyloNode |
setAngle(java.lang.Double inAngleInRadians) |
PhyloNode |
setColor(java.awt.Color inValue) |
PhyloNode |
setId(int inValue) |
PhyloNode |
setId(java.lang.String inValue) |
PhyloNode |
setLabel(java.lang.String inValue) |
protected void |
setLineIndex(int inValue) |
protected void |
setRootDirection(Edge<PhyloNode> inEdge) |
protected void |
setVerticalLineEndIndex(int inValue) |
protected void |
setVerticalLineStartIndex(int inValue) |
java.lang.String |
toString() |
public PhyloNode()
public java.lang.String getId()
public java.lang.String getLabel()
public java.awt.Color getColor()
public java.lang.Double getAngle()
protected boolean removeEdge(Edge<PhyloNode> inEdge)
protected boolean removeEdgeFrom(PhyloNode inNode)
public boolean isLeaf()
public void makeRoot()
protected void setRootDirection(Edge<PhyloNode> inEdge)
public PhyloNode getParentNode()
public java.util.List<PhyloNode> getChildNodes()
public Edge<PhyloNode> getParentEdge()
public java.util.List<Edge<PhyloNode>> getLeafFacingEdges()
public void orderEdgesByLeafCount()
public java.lang.Float getDistanceFromRoot()
public java.lang.Float getMaxDistanceToLeaf()
public int getSubnodeCount()
public java.lang.Float distanceTo(PhyloNode inNode2)
inNode2
- the node to calculate the distance topublic java.lang.String toString()
toString
in class java.lang.Object
protected void setLineIndex(int inValue)
protected java.lang.Integer getLineIndex()
protected void setVerticalLineStartIndex(int inValue)
protected java.lang.Integer getVericalLineStartIndex()
protected void setVerticalLineEndIndex(int inValue)
protected java.lang.Integer getVericalLineEndIndex()
[email protected]