public class AggregateVisualizationHelper<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 |
---|
AggregateVisualizationHelper(List<? extends VisualizationHelper<N,? super E>> helpers) |
AggregateVisualizationHelper(VisualizationHelper<N,? super E> rootVisualizer,
List<? extends VisualizationHelper<N,? super E>> helpers) |
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 AggregateVisualizationHelper(VisualizationHelper<N,? super E> rootVisualizer, List<? extends VisualizationHelper<N,? super E>> helpers)
public AggregateVisualizationHelper(List<? extends VisualizationHelper<N,? super E>> helpers)
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
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.