public final class GraphvizConfigVisitor extends AbstractClassHierarchyNodeVisitor implements EdgeVisitor<Node>
Constructor and Description |
---|
GraphvizConfigVisitor(Configuration config,
boolean showImpl,
boolean showLegend)
Create a new TANG configuration visitor.
|
Modifier and Type | Method and Description |
---|---|
static String |
getGraphvizString(Configuration config,
boolean showImpl,
boolean showLegend)
Produce a Graphviz DOT string for a given TANG configuration.
|
String |
toString() |
boolean |
visit(ClassNode<?> node)
Process current class configuration node.
|
boolean |
visit(NamedParameterNode<?> node)
Process current configuration node for the named parameter.
|
boolean |
visit(Node nodeFrom,
Node nodeTo)
Process current edge of the configuration graph.
|
boolean |
visit(PackageNode node)
Process current package configuration node.
|
visit
public GraphvizConfigVisitor(Configuration config, boolean showImpl, boolean showLegend)
aConfig
- Entire TANG configuration object.aShowImpl
- If true, plot IS-A edges for know implementations.aShowLegend
- If true, add legend to the plot.public static String getGraphvizString(Configuration config, boolean showImpl, boolean showLegend)
config
- TANG configuration object.showImpl
- If true, plot IS-A edges for know implementations.showLegend
- If true, add legend to the plot.public boolean visit(ClassNode<?> node)
visit
in class AbstractClassHierarchyNodeVisitor
node
- Current configuration node.public boolean visit(PackageNode node)
visit
in class AbstractClassHierarchyNodeVisitor
node
- Current configuration node.public boolean visit(NamedParameterNode<?> node)
visit
in class AbstractClassHierarchyNodeVisitor
node
- Current configuration node.public boolean visit(Node nodeFrom, Node nodeTo)
visit
in interface EdgeVisitor<Node>
nodeFrom
- Current configuration node.nodeTo
- Destination configuration node.Copyright © 2015 The Apache Software Foundation. All rights reserved.