Skip to content

Commit

Permalink
Added -rankdirbug option for dot bugs dealing with rankdir
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurrier committed Nov 24, 2005
1 parent 9913097 commit 5bf2e07
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/net/sourceforge/schemaspy/view/DotFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,15 @@ private void writeHeader(String graphName, boolean compact, boolean showLabel, L
dot.writeln("// dot " + Dot.getInstance().getVersion() + " on " + System.getProperty("os.name") + " " + System.getProperty("os.version"));
dot.writeln("digraph \"" + graphName + "\" {");
dot.writeln(" graph [");
dot.writeln(" rankdir=\"RL\"");
boolean rankdirbug = System.getProperty("rankdirbug") != null; // another nasty hack
if (!rankdirbug)
dot.writeln(" rankdir=\"RL\"");
dot.writeln(" bgcolor=\"" + StyleSheet.getInstance().getBodyBackground() + "\"");
if (showLabel) {
dot.writeln(" label=\"\\nGenerated by SchemaSpy\"");
if (rankdirbug)
dot.writeln(" label=\"\\nLayout is significantly better without '-rankdirbug' option\"");
else
dot.writeln(" label=\"\\nGenerated by SchemaSpy\"");
dot.writeln(" labeljust=\"l\"");
}
if (compact) {
Expand Down

0 comments on commit 5bf2e07

Please sign in to comment.