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)
GraphVisitor
visit
in interface GraphVisitor
public boolean visit(DependencyGraph.Node node)
GraphVisitor
visit
in interface GraphVisitor
public static GraphVizVisualizer createPng(File pngFile) throws IOException
GraphVizVisualizer
that generates a PNG file.IOException
Copyright © 2014. All rights reserved.