The compartment display options for classes include the
association ends, parts, ports, attributes, and constraint compartment
types.
About this task
To
set the display options for a class:
Procedure
- Right-click a class in a diagram and select Display
Options.
- Select Show Compartment Title on the General tab
if you want the names of the compartment types to display in the class.
- Click the Compartments button and then select any
of the Available type options on the right:
- AssociationEnd
- Attribute
- Constraint
- Description
- Operation
- Part
- Port
- Tag
- Type
- Click the Display button in the center of the window
to move the selected compartment type to the Display column.
- Click OK to close the Compartments window.
- Click OK to close the Display options window.
Example
In this example, the user moved the AssociationEnd type into
the Displayed column.
The
selected class then displays with these compartments.