Class NodeVisualizationHelper
- java.lang.Object
-
- net.automatalib.visualization.DefaultVisualizationHelper<Integer,CompactEdge<String>>
-
- net.automatalib.modelchecker.m3c.visualization.NodeVisualizationHelper
-
- All Implemented Interfaces:
VisualizationHelper<Integer,CompactEdge<String>>
public class NodeVisualizationHelper extends DefaultVisualizationHelper<Integer,CompactEdge<String>>
AVisualizationHelper
forWitnessTree
s that emphasizes nodes of the witness and de-emphasizes the remaining ones.
-
-
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
-
-
Field Summary
Fields Modifier and Type Field Description protected WitnessTree<?,?>
resultTree
-
Constructor Summary
Constructors Constructor Description NodeVisualizationHelper(WitnessTree<?,?> resultTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getEdgeProperties(Integer src, CompactEdge<String> edge, Integer tgt, Map<String,String> properties)
Retrieves the properties for rendering a single edge.boolean
getNodeProperties(Integer node, Map<String,String> properties)
Retrieves the properties for rendering a single node.-
Methods inherited from class net.automatalib.visualization.DefaultVisualizationHelper
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
-
-
-
-
Field Detail
-
resultTree
protected final WitnessTree<?,?> resultTree
-
-
Constructor Detail
-
NodeVisualizationHelper
public NodeVisualizationHelper(WitnessTree<?,?> resultTree)
-
-
Method Detail
-
getNodeProperties
public boolean getNodeProperties(Integer node, Map<String,String> properties)
Description copied from interface:VisualizationHelper
Retrieves the properties for rendering a single node. Additionally, the return value allows to control whether to omit this node from rendering. Iffalse
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 callsuper.getNodeProperties(node, properties);
at the beginning of the method.- Specified by:
getNodeProperties
in interfaceVisualizationHelper<Integer,CompactEdge<String>>
- Parameters:
node
- the node to be renderedproperties
- the property map- Returns:
- whether this node should be rendered
-
getEdgeProperties
public boolean getEdgeProperties(Integer src, CompactEdge<String> edge, Integer tgt, Map<String,String> properties)
Description copied from interface:VisualizationHelper
Retrieves the properties for rendering a single edge. Additionally, the return value allows to control whether to omit this edge from rendering. Iffalse
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 callsuper.getEdgeProperties(node, properties);
at the beginning of the method.- Specified by:
getEdgeProperties
in interfaceVisualizationHelper<Integer,CompactEdge<String>>
- Overrides:
getEdgeProperties
in classDefaultVisualizationHelper<Integer,CompactEdge<String>>
edge
- the edge to be renderedproperties
- the property map- Returns:
- whether this edge should be rendered
-
-