public final class DotExecutableUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
executeDot(java.io.File dotExecutablePath,
boolean invertYAxis,
java.io.File dotInputFile,
java.io.File outputFile,
java.lang.String outputFormat)
Calls the Graphviz 'dot' executable with the given arguments.
|
static java.lang.String[] |
getSupportedExportFormats(java.lang.String dotExecutable) |
static java.io.File |
renderImage(java.io.File dotExecutablePath,
java.io.File dotInputFile,
java.lang.String format,
java.lang.String outputFileName) |
public static java.io.File renderImage(java.io.File dotExecutablePath,
java.io.File dotInputFile,
java.lang.String format,
java.lang.String outputFileName)
dotExecutablePath - The path of the local Graphviz 'dot' executable, e.g.
"C:\\Program Files (x86)\\Graphviz2.38\\bin\\dot.exe"dotInputFile - The DOT content to renderformat - The image format to export the graph to (e.g. 'pdf' or 'png')outputFileName - The output image file name, e.g. "output.pdf" or
null if the input file name should be used (where
the file extension is changed dependent on the format)public static java.lang.String[] executeDot(java.io.File dotExecutablePath,
boolean invertYAxis,
java.io.File dotInputFile,
java.io.File outputFile,
java.lang.String outputFormat)
dotExecutablePath - The path of the local Graphviz 'dot' executable, e.g.
"C:\\Program Files (x86)\\Graphviz2.38\\bin\\dot.exe"invertYAxis - Whether to invert the y-axis or not.dotInputFile - The input file to pass to 'dot'.outputFile - The output file to pass to 'dot' via the -o option. May be
null.outputFormat - The output format to pass to 'dot' via the -T option. May be
null.public static java.lang.String[] getSupportedExportFormats(java.lang.String dotExecutable)
dotExecutable - path to the dot executableCopyright (c) 2014 itemis AG and others. All rights reserved.