|
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(java.lang.String layoutEnginePath)
Create a new generator by specifying the executable of the layout engine. |
Method Summary | |
---|---|
void |
generateFile(java.lang.String description,
java.io.File file,
EGraphvizOutputFormat format)
Export a graph to a file. |
java.lang.String |
generateFileAndImageMap(java.lang.String description,
java.io.File file,
EGraphvizOutputFormat format)
Export a graph to a file and return the HTML image map code. |
java.awt.image.BufferedImage |
generateImage(java.lang.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(java.lang.String layoutEnginePath)
dot
is not on the path or if another
layout engine like neato
should be used.
layoutEnginePath
- path to layout engine excutableMethod Detail |
---|
public void generateFile(java.lang.String description, java.io.File file, EGraphvizOutputFormat format) throws java.io.IOException, GraphvizException
description
- the graph descriptionfile
- the file to export to.format
- the export format.
java.io.IOException
- if an I/O problem occurrs.
GraphvizException
- if Graphviz produced an error (exit code != 0)public java.lang.String generateFileAndImageMap(java.lang.String description, java.io.File file, EGraphvizOutputFormat format) throws java.io.IOException, GraphvizException
description
- the graph descriptionfile
- the file to export to.format
- the export format.
java.io.IOException
- if an I/O problem occurrs.
GraphvizException
- if Graphviz produced an error (exit code != 0)public java.awt.image.BufferedImage generateImage(java.lang.String description) throws java.io.IOException, GraphvizException
description
- the graph description.
java.io.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 |