Layout of Packages on Class Diagram

0 votes
asked Oct 4, 2016 in To be sorted by anonymous
I have an overview diagram of all the classes in all packages. I do not display any of the relationships between the classes or packages because the diagram gets too busy. Although some of the packages are displayed in a grid-like pattern (appears to be the packages with more than 5 classes or so), other packages (seem to be ones with only a few classes) are laid out in width, making the diagram a very large width with lots of whitespace.

I realize that GraphViz is to blame here. Any tips or tricks for improving the layout? I can't use the "vertical" relationship trick since there are no relationships being shown.

Thanks!

1 Answer

+2 votes
answered Oct 5, 2016 by JohannesMeier (460 points)

Did you saw the hidden tag for relationships, documented at http://plantuml.com/class-diagram#layout?

I created a small example how to use this tag for your use case: http://www.plantuml.com/plantuml/uml/AqXCpavCJrKeC5Ievb9GICv9B2vMI3RagkKgWCaO8SiO8SiO8yiO8ykO8CkO8CkO8ikO8ikO8SkOWMIC5NIZCp9JKbBpOdKL2am1

Does that help you?

commented Oct 5, 2016 by anonymous
Thanks! That looks promising. I didn't realize I could use that for packages as well. I'll give it a try.
...