public final class DotStream
extends java.lang.Object
| Constructor and Description |
|---|
DotStream(java.io.PrintStream out)
Creates a dot stream where the file
will be saved in the specified print stream.
|
DotStream(java.lang.String filename)
Creates a dot stream where the file
will be saved in the file at the specified address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEdgeOption(java.lang.String key,
java.lang.String val)
Adds an option to the next edge.
|
void |
addNodeOption(java.lang.String key,
java.lang.String val)
Adds an option to the next node.
|
void |
defineEdge(java.lang.String source,
java.lang.String target)
Defines a new edge.
|
void |
defineNode(java.lang.String name)
Defines a new node.
|
void |
end()
Indicates that the graphviz file is finished.
|
public DotStream(java.io.PrintStream out)
out - the print stream where the file will be saved.public DotStream(java.lang.String filename)
filename - the name of the file where the stream will be saved.public void end()
public void addNodeOption(java.lang.String key,
java.lang.String val)
key - the name of the option.val - the value of the option.public void defineNode(java.lang.String name)
addNodeOption(String,String).name - the name of the node.
(may be different from the label of the node).public void addEdgeOption(java.lang.String key,
java.lang.String val)
key - the name of the option.val - the value of the option.public void defineEdge(java.lang.String source,
java.lang.String target)
addEdgeOption(String,String).source - the name of the source node.target - the name of the target node.
(may be different from the label of the node).