|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.exporters.ExporterDOT
public final class ExporterDOT
This class allow export Tree objects as DOT graphs (for read it in GraphViz, for example)
| Constructor Summary | |
|---|---|
ExporterDOT()
|
|
| Method Summary | |
|---|---|
private static java.lang.String |
getNodeId(TreeNode tn)
Returns the Strign used to identify a node in tree. |
private static java.lang.String |
getNodeLine(TreeNode tn,
Matrix m,
boolean isTaxa)
Returns the String of a node line of the tree |
static java.io.File |
writeDOT(Tree t)
Creates a temporal file containing the exported tree in DOT format |
private static void |
writeDOT(TreeNode t,
Matrix mat,
java.io.OutputStreamWriter out)
Writes recursively all the tree nodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExporterDOT()
| Method Detail |
|---|
public static java.io.File writeDOT(Tree t)
throws DataException
t - Tree to export
DataException
private static void writeDOT(TreeNode t,
Matrix mat,
java.io.OutputStreamWriter out)
throws java.io.IOException
t - Current TreeNodemat - Reference Matrixout - OutputStreamWriter of temp File
java.io.IOExceptionprivate static java.lang.String getNodeId(TreeNode tn)
tn - TreeNode to generate the id
private static java.lang.String getNodeLine(TreeNode tn,
Matrix m,
boolean isTaxa)
tn - Current TreeNodem - Reference MatrixisTaxa - The current node is a taxa node?
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||