public class GraphVizVisualizer extends Object implements GraphVisitor
| Constructor and Description |
|---|
GraphVizVisualizer(OutputStream out) |
GraphVizVisualizer(PrintWriter out) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColoredSubgraph(DependencyGraph g,
String color)
Paint all edges and nodes that belong to the given subgraph by using the specified color.
|
void |
close() |
static GraphVizVisualizer |
createPng(File pngFile)
Returns a
GraphVizVisualizer that generates a PNG file. |
boolean |
visit(DependencyGraph.Edge edge)
Visits an edge.
|
boolean |
visit(DependencyGraph.Node node)
Visits a node.
|
public GraphVizVisualizer(PrintWriter out)
public GraphVizVisualizer(OutputStream out)
public void addColoredSubgraph(DependencyGraph g, String color)
public void close()
public boolean visit(DependencyGraph.Edge edge)
GraphVisitorvisit in interface GraphVisitorpublic boolean visit(DependencyGraph.Node node)
GraphVisitorvisit in interface GraphVisitorpublic static GraphVizVisualizer createPng(File pngFile) throws IOException
GraphVizVisualizer that generates a PNG file.IOExceptionCopyright © 2014. All rights reserved.