V - Type of the vertices of the graph.E - Type of the edges of the graph.public class GraphvizVisualization<V,E> extends Object
| Constructor and Description |
|---|
GraphvizVisualization(edu.uci.ics.jung.graph.Graph<V,E> g)
Create a new Graphviz visualization.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSameRankCluster(Set<V> cluster)
Make a Set of Vertices appear on the same rank if supported by the layout engine.
|
Map<String,String> |
getEdgeAttributes() |
Map<String,String> |
getGraphAttributes() |
Map<String,String> |
getNodeAttributes() |
static void |
render(File inFile,
File outFile,
LayoutEngine layoutEngine)
Render a dot file using Graphviz.
|
static void |
render(File inFile,
File outFile,
LayoutEngine layoutEngine,
long generationTimeout)
Render a dot file using Graphviz.
|
void |
render(File outFile,
LayoutEngine layoutEngine)
Perform the actual graph rendering.
|
void |
render(File outFile,
LayoutEngine layoutEngine,
long generationTimeout)
Perform the graph rendering with limited maximal time.
|
void |
setEdgeAttributes(Map<String,String> edgeAttributes) |
void |
setEdgeRenderer(EdgeRenderer<E> edgeRenderer) |
void |
setGraphAttributes(Map<String,String> graphAttributes) |
void |
setNodeAttributes(Map<String,String> nodeAttributes) |
void |
setNodeRenderer(NodeRenderer<V> nodeRenderer) |
void |
writeDotFile(File outFile)
Write the dot file for the graph to render, this is the Graphviz notation for graphs.
|
public final void writeDotFile(File outFile) throws IOException
outFile - The file to write the dot file to.IOException - Thrown if the file can't be written.public static void render(File inFile, File outFile, LayoutEngine layoutEngine) throws IOException
inFile - The dot file to render.outFile - The file to render the graph to, the format is determined by the extension.layoutEngine - The Graphviz layout engine to use.IOException - Thrown if the graph can't be rendered.public static void render(File inFile, File outFile, LayoutEngine layoutEngine, long generationTimeout) throws IOException
inFile - The dot file to render.outFile - The file to render the graph to, the format is determined by the extension.layoutEngine - The Graphviz layout engine to use.generationTimeout - The maximum number of milliseconds to wait for the graph generation to finish,
abort otherwise.IOException - Thrown if the graph can't be rendered.public final void render(File outFile, LayoutEngine layoutEngine) throws IOException
outFile - The file to render the graph to, the format is determined by the extension.IOException - Thrown if the graph generation fails.public final void render(File outFile, LayoutEngine layoutEngine, long generationTimeout) throws IOException
outFile - The file to render the graph to, the format is determined by the extension.generationTimeout - The maximum number of milliseconds to wait for the graph generation to finish,
abort otherwise.IOException - Thrown if the graph generation fails.public final void setEdgeRenderer(EdgeRenderer<E> edgeRenderer)
public final void setNodeRenderer(NodeRenderer<V> nodeRenderer)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.