Skip to content

Commit

Permalink
Now takes advantage of the GraphVis dot 2.6 ability to point to the E…
Browse files Browse the repository at this point in the history
…ast/West center of a node if running dot 2.6 or higher
  • Loading branch information
johncurrier committed Aug 31, 2005
1 parent 623581e commit 2511dec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net/sourceforge/schemaspy/util/Dot.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public String getSupportedVersions() {
return "dot version " + supportedVersion + " or versions greater than " + badVersion;
}

public boolean supportsCenteredEastWestEdges() {
return getVersion().compareTo(new Version("2.6")) >= 0;
}

public boolean generateGraph(File dotFile, File graphFile) throws IOException {
try {
String dotCommand = "dot -Tpng \"" + dotFile + "\" -o\"" + graphFile + "\"";
Expand Down

0 comments on commit 2511dec

Please sign in to comment.