|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.tum.cs.commons.graph.GraphvizGenerator
public class GraphvizGenerator
Java interface to the Graphviz graph drawing toolkit.
| Constructor Summary | |
|---|---|
GraphvizGenerator()
Create a new generator that uses dot and expects it to be
on the path. |
|
GraphvizGenerator(String layoutEnginePath)
Create a new generator by specifying the executable of the layout engine. |
|
| Method Summary | |
|---|---|
void |
generateFile(String description,
File file,
EGraphvizOutputFormat format)
Export a graph to a file. |
String |
generateFileAndImageMap(String description,
File file,
EGraphvizOutputFormat format)
Export a graph to a file and return the HTML image map code. |
BufferedImage |
generateImage(String description)
Generate an image from a graph description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphvizGenerator()
dot and expects it to be
on the path.
public GraphvizGenerator(String layoutEnginePath)
dot is not on the path or if another
layout engine like neato should be used.
layoutEnginePath - path to layout engine excutable| Method Detail |
|---|
public void generateFile(String description,
File file,
EGraphvizOutputFormat format)
throws IOException,
GraphvizException
description - the graph descriptionfile - the file to export to.format - the export format.
IOException - if an I/O problem occurrs.
GraphvizException - if Graphviz produced an error (exit code != 0)
public String generateFileAndImageMap(String description,
File file,
EGraphvizOutputFormat format)
throws IOException,
GraphvizException
description - the graph descriptionfile - the file to export to.format - the export format.
IOException - if an I/O problem occurrs.
GraphvizException - if Graphviz produced an error (exit code != 0)
public BufferedImage generateImage(String description)
throws IOException,
GraphvizException
description - the graph description.
IOException - if an I/O problem occurrs.
GraphvizException - if Graphviz produced an error (exit code != 0)
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||