Class CFMPSVisualizationHelper<N,L,E>
- java.lang.Object
-
- net.automatalib.visualization.DefaultVisualizationHelper<Pair<L,N>,Pair<L,E>>
-
- net.automatalib.graph.visualization.CFMPSVisualizationHelper<N,L,E>
-
- All Implemented Interfaces:
VisualizationHelper<Pair<L,N>,Pair<L,E>>
public class CFMPSVisualizationHelper<N,L,E> extends DefaultVisualizationHelper<Pair<L,N>,Pair<L,E>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.automatalib.visualization.VisualizationHelper
VisualizationHelper.CommonAttrs, VisualizationHelper.CommonStyles, VisualizationHelper.EdgeAttrs, VisualizationHelper.EdgeStyles, VisualizationHelper.MTSEdgeAttrs, VisualizationHelper.NodeAttrs, VisualizationHelper.NodeShapes, VisualizationHelper.NodeStyles
-
-
Constructor Summary
Constructors Constructor Description CFMPSVisualizationHelper(Map<L,? extends ProceduralModalProcessGraph<? extends N,L,? extends E,?,?>> pmpgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetEdgeProperties(Pair<L,N> src, Pair<L,E> edge, Pair<L,N> tgt, Map<String,String> properties)Retrieves the properties for rendering a single edge.booleangetNodeProperties(Pair<L,N> node, Map<String,String> properties)Retrieves the properties for rendering a single node.protected Collection<Pair<L,N>>initialNodes()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.automatalib.visualization.VisualizationHelper
getGlobalEdgeProperties, getGlobalNodeProperties
-
-
-
-
Method Detail
-
initialNodes
protected Collection<Pair<L,N>> initialNodes()
- Overrides:
initialNodesin classDefaultVisualizationHelper<Pair<L,N>,Pair<L,E>>
-
getNodeProperties
public boolean getNodeProperties(Pair<L,N> node, Map<String,String> properties)
Description copied from interface:VisualizationHelperRetrieves the properties for rendering a single node. Additionally, the return value allows to control whether to omit this node from rendering. Iffalseis returned, the node will not be rendered. Consequently, any modifications to the properties map will have no effect.The properties are stored in the
Mapargument. Note that if an implementation of a base class is overridden, it is probably a good idea to callsuper.getNodeProperties(node, properties);at the beginning of the method.- Specified by:
getNodePropertiesin interfaceVisualizationHelper<N,L>- Overrides:
getNodePropertiesin classDefaultVisualizationHelper<Pair<L,N>,Pair<L,E>>- Parameters:
node- the node to be renderedproperties- the property map- Returns:
- whether this node should be rendered
-
getEdgeProperties
public boolean getEdgeProperties(Pair<L,N> src, Pair<L,E> edge, Pair<L,N> tgt, Map<String,String> properties)
Description copied from interface:VisualizationHelperRetrieves the properties for rendering a single edge. Additionally, the return value allows to control whether to omit this edge from rendering. Iffalseis returned, the edge will not be rendered. Consequently, any modifications to the properties map will have no effect.The properties are stored in the
Mapargument. Note that if an implementation of a base class is overridden, it is probably a good idea to callsuper.getEdgeProperties(node, properties);at the beginning of the method.- Specified by:
getEdgePropertiesin interfaceVisualizationHelper<N,L>- Overrides:
getEdgePropertiesin classDefaultVisualizationHelper<Pair<L,N>,Pair<L,E>>edge- the edge to be renderedproperties- the property map- Returns:
- whether this edge should be rendered
-
-