From 84b14f46e74d3c7d061acf75059994b8eceb01f1 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Sun, 6 May 2007 14:29:33 +0000 Subject: [PATCH] Package visibility is best for generating diagrams. --- doc/faq.xml | 4 ++-- umlgraph.bat | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/faq.xml b/doc/faq.xml index 640248c..36e89fc 100644 --- a/doc/faq.xml +++ b/doc/faq.xml @@ -32,7 +32,7 @@ To update the table of contents execute the following vim command from a registe Assuming that you diagram's description is in the file Diag.java, issue the commands: -javadoc -docletpath absolute-path-to/UmlGraph.jar -doclet gr.spinellis.umlgraph.doclet.UmlGraph -output Diag.dot Diag.java +javadoc -docletpath absolute-path-to/UmlGraph.jar -package -doclet gr.spinellis.umlgraph.doclet.UmlGraph -output Diag.dot Diag.java dot -Tpng -oDiag.png Diag.dot In the above you can change png to another file format, @@ -72,7 +72,7 @@ ppmtogif >FILENAME.gif (David Griffiths reports that he had to add to the gs command -sPAPERSIZE=a4 or -dDEVICEHEIGHTPOINTS=1000 to avoid getting -his resutls chopped-off.) +his results chopped-off.)

One other possibility for converting the sequence diagram into Postscript diff --git a/umlgraph.bat b/umlgraph.bat index 62d0845..00485e7 100755 --- a/umlgraph.bat +++ b/umlgraph.bat @@ -9,7 +9,7 @@ echo usage: umlgraph base_file_name filetype [umlgraph arguments] goto end :ok -javadoc -docletpath lib/UmlGraph.jar -doclet gr.spinellis.umlgraph.doclet.UmlGraph -private %3 %4 %5 %6 %7 %8 %9 -output %1.dot %1.java +javadoc -docletpath lib/UmlGraph.jar -package -doclet gr.spinellis.umlgraph.doclet.UmlGraph %3 %4 %5 %6 %7 %8 %9 -output %1.dot %1.java dot -T%2 -o%1.%2 %1.dot :end