public static class DFSExample.DFSResultDOTHelper<N,E> extends Object implements VisualizationHelper<N,E>
VisualizationHelper.CommonAttrs, VisualizationHelper.CommonStyles, VisualizationHelper.EdgeAttrs, VisualizationHelper.EdgeStyles, VisualizationHelper.NodeAttrs, VisualizationHelper.NodeShapes, VisualizationHelper.NodeStyles
Constructor and Description |
---|
DFSResultDOTHelper(DFSExample.MyDFSVisitor<N,E> vis) |
DFSResultDOTHelper(Map<N,Integer> dfsNumbers,
Map<E,DFSExample.EdgeType> edgeTypes) |
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.
|
boolean |
getNodeProperties(N node,
Map<String,String> properties)
Retrieves the properties for rendering a single node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGlobalEdgeProperties, getGlobalNodeProperties
public DFSResultDOTHelper(DFSExample.MyDFSVisitor<N,E> vis)
public boolean getNodeProperties(N node, Map<String,String> properties)
VisualizationHelper
false
is returned, the node will not be rendered. Consequently,
any modifications to the properties map will have no effect.
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>
node
- the node to be renderedproperties
- the property mappublic boolean getEdgeProperties(N src, E edge, N tgt, Map<String,String> properties)
VisualizationHelper
false
is returned, the edge will not be rendered. Consequently,
any modifications to the properties map will have no effect.
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>
edge
- the edge to be renderedproperties
- the property mapCopyright © 2019. All rights reserved.