Package visibility is best for generating diagrams.

This commit is contained in:
Diomidis Spinellis 2007-05-06 14:29:33 +00:00
parent ac04f8c72e
commit 84b14f46e7
2 changed files with 3 additions and 3 deletions

View File

@ -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:
<fmtcode ext="sh">
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
</fmtcode>
In the above you can change <code>png</code> to another file format,
@ -72,7 +72,7 @@ ppmtogif >FILENAME.gif
(David Griffiths reports that he had to add to the <em>gs</em> command
<code>-sPAPERSIZE=a4</code> or
<code>-dDEVICEHEIGHTPOINTS=1000</code> to avoid getting
his resutls chopped-off.)
his results chopped-off.)
<p />
One other possibility for converting the sequence diagram into Postscript

View File

@ -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