public class PhylogeneticTree extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PhylogeneticTree.Flag |
Modifier and Type | Field and Description |
---|---|
static String |
BRANCH_TRAVERSAL_LIMIT_BASE_ID
The ID used for the branch traversal limit ('branchLimit').
|
Constructor and Description |
---|
PhylogeneticTree() |
PhylogeneticTree(InputStream inStream) |
PhylogeneticTree(String inTree) |
public static final String BRANCH_TRAVERSAL_LIMIT_BASE_ID
public PhylogeneticTree()
public PhylogeneticTree(String inTree)
public PhylogeneticTree(InputStream inStream)
public PhylogeneticTree setTitle(String inValue)
public static void setDefaultAsciiWidth(int inValue)
public PhylogeneticTree setAsciiWidth(int inValue)
public boolean isRooted()
public PhyloNode getRootNode()
public void setRootNode(PhyloNode inValue)
public List<PhyloNode> getLeafNodes()
public List<PhyloNode> getAllNodes()
public void orderByNodeCount()
public Float getRootedTreeDistance()
public void removeNode(PhyloNode inNode)
public PhyloNode getClosestLeaf(PhyloNode inNode)
public Edge getClosestLeafPair()
public List<Edge<PhyloNode>> getMaxLeaf2LeafEdgeTrail()
public void rootTreeByMidpointMethod()
public List<List<PhyloNode>> groupNodes(float inBranchLengthTraversalLimit, PhylogeneticTree.Flag... inFlags)
public DistanceMatrix toDistanceMatrix()
public String toNewick()
public String toASCII()
public HTMLTag toHTMLTag()
public void setMetaDataForDisplay(DataTable inMetaData)
public SVG toSVG(TreeDisplaySettings inDisplaySettings)
public static String generateSvgJavascript() throws IOException
IOException
public void toJPG(TreeDisplaySettings inDisplaySettings, OutputStream inStream) throws IOException
IOException
public BufferedImage getBufferedImage(TreeDisplaySettings inDisplaySettings)
public BufferedImage getBufferedImageWithMaxWidth(TreeDisplaySettings inDisplaySettings, GfxSize inMaxWidth)
public List<PhyloNode> getAllNodesOrderedByDistance()
public void setAttribute(String inName, Object inValue)
public boolean hasAttribute(String inName)
public Object getAttribute(String inName)
public Collection<String> getAttributeNames()
public void clearAttributes()
public Object removeAttribute(String inName)