Package diagram is a kind of UML diagram that shows the arrangement and organization of model elements in middle to large scale project. It can show both structure and dependencies between sub-systems or modules.
Creating package diagram
Perform the steps below to create a UML package diagram in Visual Paradigm.
- Select Diagram > New from the application toolbar.
- In the New Diagram window, select Package Diagram.
- Click Next.
- Enter the diagram name and description. The Location field enables you to select a model to store the diagram.
- Click OK.
Creating package
To create package in package diagram, click Package on the diagram toolbar and then click on the diagram.
A package will be created.
Assigning stereotypes
Right click on the package and select Stereotypes > Edit Stereotypes… from the pop-up menu.
When the Package Specification window is opened, with the Stereotypes tab selected. The list on the left shows the selectable stereotypes.
If the stereotype you want to use is not on the list, click Edit Stereotypes… button.
Click Add… button in the Configure Stereotypes window.
Enter name for the new stereotype (e.g. facade). Click OK button in Stereotype Specification window and the Configure Stereotypes window. You will see the added stereotype appears on the list in Package Specification window. Select it and click Add Selected button. Next, click OK button to proceed.
Close the specification window. Stereotypes will be applied to the package.
Continue to complete the diagram.