public class PrettyVisualizationHelper<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 |
---|
PrettyVisualizationHelper() |
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.
|
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>
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.