public static class PrefuseTreeVisualization.DottyToTree
extends java.lang.Object
| Constructor and Description |
|---|
DottyToTree() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convert(java.lang.String dotty)
Parses the incoming data and writes the generated output.
|
protected java.lang.String |
sanitize(java.lang.String s)
Replaces certain characters with their character entities.
|
protected void |
writeEdge(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Edge edge)
Writes the edge as GraphML.
|
protected void |
writeFooter(java.io.BufferedWriter writer)
Writes the footer of the GraphML file.
|
protected void |
writeHeader(java.io.BufferedWriter writer)
Writes the header of the GraphML file.
|
protected void |
writeNode(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Node node)
Writes the node as GraphML.
|
protected java.lang.String sanitize(java.lang.String s)
s - the string to processprotected void writeHeader(java.io.BufferedWriter writer)
throws java.lang.Exception
writer - the writer to usejava.lang.Exception - if an error occursprotected void writeNode(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Node node)
throws java.lang.Exception
writer - the writer to usenode - the node to write as GraphMLjava.lang.Exception - if an error occursprotected void writeEdge(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Edge edge)
throws java.lang.Exception
writer - the writer to useedge - the edge to writejava.lang.Exception - if an error occursprotected void writeFooter(java.io.BufferedWriter writer)
throws java.lang.Exception
writer - the writer to usejava.lang.Exception - if an error occurspublic java.lang.String convert(java.lang.String dotty)
throws java.lang.Exception
dotty - the graph in dotty formatjava.lang.Exception - if parsing or writing fails