|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.util.Dot
Basic implementation of the GraphViz
interface.
Inner classes inherited from class org.inxar.syntacs.util.GraphViz |
GraphViz.Edge, GraphViz.Node |
Constructor Summary | |
Dot(String name)
|
Method Summary | |
GraphViz |
attr(String key,
String val)
Adds a new attribute to the graph and returns the graph instance. |
GraphViz |
comment(String text)
Sets the comment for the graph. |
GraphViz.Edge |
edge(String src,
String dst)
Adds a new Edge to the graph and returns it to the
caller for further refinement. |
String |
getName()
Returns the name of the graph. |
boolean |
isDirected()
Returns true if this is a digraph instance (for
input to the dot program, false if it is a
non-directed graph (for input to the neato program). |
void |
isDirected(boolean isDirected)
Setter method for the directed flag. |
GraphViz.Node |
node(String name)
Adds a new Node to the graph and returns it to the
caller for further refinement. |
void |
setName(String name)
The the name of the graph. |
GraphViz |
subgraph(String name)
Adds a new subgraph to the graph and returns it to the caller for further refinement. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Dot(String name)
Method Detail |
public GraphViz attr(String key, String val)
GraphViz
attr
in interface GraphViz
public GraphViz comment(String text)
GraphViz
comment
in interface GraphViz
public void setName(String name)
GraphViz
setName
in interface GraphViz
public String getName()
GraphViz
getName
in interface GraphViz
public void isDirected(boolean isDirected)
GraphViz
isDirected
in interface GraphViz
public boolean isDirected()
GraphViz
true
if this is a digraph instance (for
input to the dot program, false
if it is a
non-directed graph (for input to the neato program).isDirected
in interface GraphViz
public GraphViz.Node node(String name)
GraphViz
Node
to the graph and returns it to the
caller for further refinement.node
in interface GraphViz
public GraphViz.Edge edge(String src, String dst)
GraphViz
Edge
to the graph and returns it to the
caller for further refinement.edge
in interface GraphViz
public GraphViz subgraph(String name)
GraphViz
subgraph
in interface GraphViz
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |