public class DefaultVisualizationHelper<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 |
---|
DefaultVisualizationHelper() |
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.
|
protected Collection<N> |
initialNodes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGlobalEdgeProperties, getGlobalNodeProperties
protected Collection<N> initialNodes()
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>
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>
edge
- the edge to be renderedproperties
- the property mapCopyright © 2018. All rights reserved.