public class DelegateDOTHelper<N,E> extends Object implements GraphDOTHelper<N,E>
LABEL, SHAPE
Modifier | Constructor and Description |
---|---|
protected |
DelegateDOTHelper(GraphDOTHelper<N,? super E> parent) |
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.
|
protected DelegateDOTHelper(GraphDOTHelper<N,? super E> parent)
public void writePreamble(Appendable a) throws IOException
GraphDOTHelper
writePreamble
in interface GraphDOTHelper<N,E>
a
- the Appendable
to write toIOException
- if writing to a throws.public void writePostamble(Mapping<N,String> identifiers, Appendable a) throws IOException
GraphDOTHelper
writePostamble
in interface GraphDOTHelper<N,E>
a
- the Appendable
to write toIOException
- if writing to a throws.public boolean getNodeProperties(N node, Map<String,String> properties)
GraphDOTHelper
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.getNodeProperties
in interface GraphDOTHelper<N,E>
node
- the node to be renderedproperties
- the property mappublic boolean getEdgeProperties(N src, E edge, N tgt, Map<String,String> properties)
GraphDOTHelper
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.getEdgeProperties
in interface GraphDOTHelper<N,E>
edge
- the edge to be renderedproperties
- the property mapCopyright © 2015. All Rights Reserved.