public class DefaultDOTVisualizationHelper<N,E> extends DefaultVisualizationHelper<N,E> implements DOTVisualizationHelper<N,E>
VisualizationHelper.CommonAttrs, VisualizationHelper.CommonStyles, VisualizationHelper.EdgeAttrs, VisualizationHelper.EdgeStyles, VisualizationHelper.NodeAttrs, VisualizationHelper.NodeShapes, VisualizationHelper.NodeStyles
Constructor and Description |
---|
DefaultDOTVisualizationHelper() |
DefaultDOTVisualizationHelper(VisualizationHelper<N,? super E> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
getEdgeProperties(N src,
E edge,
N tgt,
Map<String,String> properties)
Retrieves the properties for rendering a single edge.
|
void |
getGlobalEdgeProperties(Map<String,String> properties) |
void |
getGlobalNodeProperties(Map<String,String> properties) |
boolean |
getNodeProperties(N node,
Map<String,String> properties)
Retrieves the properties for rendering a single node.
|
void |
writePostamble(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.
|
initialNodes
public DefaultDOTVisualizationHelper()
public DefaultDOTVisualizationHelper(VisualizationHelper<N,? super E> delegate)
public void getGlobalNodeProperties(Map<String,String> properties)
getGlobalNodeProperties
in interface VisualizationHelper<N,E>
public void getGlobalEdgeProperties(Map<String,String> properties)
getGlobalEdgeProperties
in interface VisualizationHelper<N,E>
public boolean getNodeProperties(N node, Map<String,String> properties)
VisualizationHelper
The properties are stored in the 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 VisualizationHelper<N,E>
getNodeProperties
in class DefaultVisualizationHelper<N,E>
node
- the node to be renderedproperties
- the property mappublic boolean getEdgeProperties(N src, E edge, N tgt, Map<String,String> properties)
VisualizationHelper
The properties are stored in the 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 VisualizationHelper<N,E>
getEdgeProperties
in class DefaultVisualizationHelper<N,E>
edge
- the edge to be renderedproperties
- the property mappublic void writePreamble(Appendable a) throws IOException
DOTVisualizationHelper
writePreamble
in interface DOTVisualizationHelper<N,E>
a
- the Appendable
to write toIOException
- if writing to a throws.public void writePostamble(Appendable a) throws IOException
DOTVisualizationHelper
writePostamble
in interface DOTVisualizationHelper<N,E>
a
- the Appendable
to write toIOException
- if writing to a throws.Copyright © 2018. All rights reserved.