public class Dot extends Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
class |
Dot.DotFailure |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
exists() |
String |
generateDiagram(File dotFile,
File diagramFile)
Using the specified .dot file generates an image returning the image's image map.
|
String |
getFormat() |
static Dot |
getInstance() |
String |
getRenderer() |
String |
getSupportedVersions() |
Version |
getVersion() |
boolean |
isHighQuality() |
boolean |
isValid() |
boolean |
requiresGdRenderer()
Returns true if the installed dot requires specifying :gd as a renderer.
|
void |
setFormat(String format)
Set the image format to generate.
|
void |
setHighQuality(boolean highQuality)
If
true then generate output of "higher quality"
than the default ("lower quality"). |
void |
setRenderer(String renderer)
Set the renderer to use for the -Tformat[:renderer[:formatter]] dot option as specified
at
http://www.graphviz.org/doc/info/command.html where "format" is specified by
setFormat(String)
Note that the leading ":" is required while :formatter is optional. |
boolean |
supportsCenteredEastWestEdges() |
boolean |
supportsRenderer(String renderer)
Returns
true if the specified renderer is supported. |
public static Dot getInstance()
public boolean exists()
public Version getVersion()
public boolean isValid()
public String getSupportedVersions()
public boolean supportsCenteredEastWestEdges()
public void setFormat(String format)
png.
See http://www.graphviz.org/doc/info/output.html
for valid formats.format - image format to generatepublic String getFormat()
setFormat(String)public boolean requiresGdRenderer()
The intent of this property is to determine if it's ok to tack ":gd" to the format specifier. Earlier versions didn't require it and didn't know about the option.
public void setRenderer(String renderer)
setFormat(String)Note that the leading ":" is required while :formatter is optional.
renderer - public String getRenderer()
public void setHighQuality(boolean highQuality)
true then generate output of "higher quality"
than the default ("lower quality").
Note that the default is intended to be "lower quality",
but various installations of Graphviz may have have different abilities.
That is, some might not have the "lower quality" libraries and others might
not have the "higher quality" libraries.public boolean isHighQuality()
setHighQuality(boolean)public boolean supportsRenderer(String renderer)
true if the specified renderer is supported.
See setRenderer(String) for renderer details.renderer - public String generateDiagram(File dotFile, File diagramFile) throws Dot.DotFailure
Dot.DotFailureCopyright © 2016. All Rights Reserved.