|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.grapher.graphviz.GraphvizRenderer
public class GraphvizRenderer
Renderer
implementation that writes out a Graphviz DOT file of the
graph. Bound in GraphvizModule
.
Specify the PrintWriter
to output to with
setOut(PrintWriter)
.
Constructor Summary | |
---|---|
GraphvizRenderer()
|
Method Summary | |
---|---|
void |
addEdge(GraphvizEdge edge)
|
void |
addNode(GraphvizNode node)
|
protected void |
finish()
|
protected String |
getArrowString(List<ArrowType> arrows)
Turns a List of ArrowType s into a String that
represents combining them. |
protected Map<String,String> |
getEdgeAttributes(GraphvizEdge edge)
|
protected String |
getEdgeEndPoint(String nodeId,
String portId,
CompassPoint compassPoint)
|
protected Map<String,String> |
getGraphAttributes()
|
protected Map<String,String> |
getNodeAttributes(GraphvizNode node)
|
protected String |
getNodeLabel(GraphvizNode node)
Creates the "label" for a node. |
protected String |
htmlEscape(String str)
|
void |
newAlias(String fromId,
String toId)
Makes edges that would point to fromId point to
toId instead. |
void |
render()
|
protected void |
renderEdge(GraphvizEdge edge)
|
protected void |
renderNode(GraphvizNode node)
|
protected String |
resolveAlias(String id)
|
GraphvizRenderer |
setOut(PrintWriter out)
|
GraphvizRenderer |
setRankdir(String rankdir)
|
protected void |
start()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphvizRenderer()
Method Detail |
---|
public GraphvizRenderer setOut(PrintWriter out)
public GraphvizRenderer setRankdir(String rankdir)
public void addNode(GraphvizNode node)
public void addEdge(GraphvizEdge edge)
public void newAlias(String fromId, String toId)
NodeAliasFactory
fromId
point to
toId
instead.
newAlias
in interface NodeAliasFactory<String>
protected String resolveAlias(String id)
public void render()
render
in interface Renderer
protected Map<String,String> getGraphAttributes()
protected void start()
protected void finish()
protected void renderNode(GraphvizNode node)
protected Map<String,String> getNodeAttributes(GraphvizNode node)
protected String getNodeLabel(GraphvizNode node)
ImplementationNode
s) rows for each of the member fields.
protected void renderEdge(GraphvizEdge edge)
protected Map<String,String> getEdgeAttributes(GraphvizEdge edge)
protected String getArrowString(List<ArrowType> arrows)
List
of ArrowType
s into a String
that
represents combining them. With Graphviz, that just means concatenating
them.
protected String getEdgeEndPoint(String nodeId, String portId, CompassPoint compassPoint)
protected String htmlEscape(String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |