Composite structure diagram visualizes the internal structure of a class or collaboration. It is a kind of component diagram mainly used in modeling a system at micro point-of-view.
Right click Composite Structure Diagram on Diagram Navigator and select New Composite Structure Diagram from the pop-up menu to create a composite structure diagram.
![]() |
| Create composite structure diagram |
To create class, click Class on the diagram toolbar and then click on the diagram.
![]() |
| Create class |
A class will be created.
![]() |
| Class created |
To create part, move the mouse over the target class, press its resource icon New Part.
![]() |
| Create part |
A part will be created.
![]() |
| Part created |
To create port, move the mouse over the target class, press its resource icon New Port.
![]() |
| Create port |
A port will be created.
![]() |
| Port created |
Right-click the port and select Open Specification... from the pop-up menu. The Port Specification dialog box appears.
Click the combo box of Type and select a class.
![]() |
| Select type |
Click OK button to apply the changes. Type will be shown on the caption of the port.
![]() |
| Type shown on port |
To create connector, click Connector on the diagram toolbar.
![]() |
| Create connector |
Drag from the source shape, move the mouse over the target shape and then release the mouse button to create the connector.
![]() |
| Connector created |
Continue to complete the diagram.
![]() |
| Completed diagram |