Class HTMLVisualizationHelper
java.lang.Object
net.automatalib.visualization.DefaultVisualizationHelper<Integer,CompactEdge<String>>
net.automatalib.modelchecker.m3c.visualization.HTMLVisualizationHelper
- All Implemented Interfaces:
VisualizationHelper<Integer,CompactEdge<String>>
public class HTMLVisualizationHelper
extends DefaultVisualizationHelper<Integer,CompactEdge<String>>
A
VisualizationHelper for WitnessTrees that renders the node labels as an HTML-based table. Note that
the syntax is specific to a DOT-based visualization.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.automatalib.visualization.VisualizationHelper
VisualizationHelper.CommonAttrs, VisualizationHelper.CommonStyles, VisualizationHelper.EdgeAttrs, VisualizationHelper.EdgeStyles, VisualizationHelper.MMLTEdgeAttrs, VisualizationHelper.MMLTNodeAttrs, VisualizationHelper.MTSEdgeAttrs, VisualizationHelper.NodeAttrs, VisualizationHelper.NodeShapes, VisualizationHelper.NodeStyles, VisualizationHelper.PMPGEdgeAttrs, VisualizationHelper.PMPGNodeAttrs -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHTMLVisualizationHelper(WitnessTree<?, ?> resultTree) HTMLVisualizationHelper(WitnessTree<?, ?> resultTree, boolean shortDisplay) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEdgeProperties(Integer src, CompactEdge<String> edge, Integer tgt, Map<String, String> properties) Retrieves the properties for rendering a single edge.booleangetNodeProperties(Integer node, Map<String, String> properties) Retrieves the properties for rendering a single node.Methods inherited from class net.automatalib.visualization.DefaultVisualizationHelper
initialNodesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.automatalib.visualization.VisualizationHelper
getGlobalEdgeProperties, getGlobalNodeProperties
-
Field Details
-
resultTree
-
-
Constructor Details
-
HTMLVisualizationHelper
-
HTMLVisualizationHelper
-
-
Method Details
-
getNodeProperties
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<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: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<Integer,CompactEdge<String>> - Overrides:
getEdgePropertiesin classDefaultVisualizationHelper<Integer,CompactEdge<String>> - Parameters:
src- the source node of the edgeedge- the edge to be renderedtgt- the target node of the edgeproperties- the property map- Returns:
- whether this edge should be rendered
-