N
- node classE
- edge classpublic interface GraphDOTHelper<N,E>
Modifier and Type | Field and Description |
---|---|
static String |
LABEL |
static String |
SHAPE |
Modifier and Type | Method and Description |
---|---|
boolean |
getEdgeProperties(N src,
E edge,
N tgt,
Map<String,String> properties)
Retrieves the GraphVIZ properties for rendering a single edge.
|
boolean |
getNodeProperties(N node,
Map<String,String> properties)
Retrieves the GraphVIZ properties for rendering a single node.
|
void |
writePostamble(Mapping<N,String> identifiers,
Appendable a)
Called after the node and edge data are written, but before
the closing brace.
|
void |
writePreamble(Appendable a)
Called before the node and edge data are written, but after
the opening "digraph {" statement.
|
static final String LABEL
static final String SHAPE
void writePreamble(Appendable a) throws IOException
a
- the Appendable
to write toIOException
- if writing to a throws.void writePostamble(Mapping<N,String> identifiers, Appendable a) throws IOException
a
- the Appendable
to write toIOException
- if writing to a throws.boolean getNodeProperties(N node, Map<String,String> properties)
Map
argument. Note that if an implementation
of a base class is overridden, it is probably a good idea to call
super.getNodeProperties(node, properties); at the beginning of
the method.node
- the node to be renderedproperties
- the property mapboolean getEdgeProperties(N src, E edge, N tgt, Map<String,String> properties)
Map
argument. Note that if an implementation
of a base class is overridden, it is probably a good idea to call
super.getEdgeProperties(node, properties); at the beginning of
the method.edge
- the edge to be renderedproperties
- the property mapCopyright © 2015. All Rights Reserved.