Home > Diagrams > Class Diagram

Working At Package Level

Any class diagram created in a package fragment root is a specific diagram dedicated to show the packages and their relationships. The other class diagrams (created in packages) can also work with packages but they must be explicitly inserted in the diagram.

The following screenshot shows an example. Three packages are represented with their dependencies : model, process and gui. Here the package gui depends on both packages model and process, while the process package depends on the model package.





Classes (and Interfaces) can be inserted in the packages by using the contextual menu item Insert > Class (or Insert > Interface) on the package.





A dialog box proposes to choose one the packages classes (or interfaces).





Once chosen, the class (or interface) appears in the package view.




The layout can be applied to either the whole diagram or a single package with its inserted element.