You can specify which compartment items are visible by
selecting their visibility criteria and by selecting them manually.
Tip: You can filter compartment
items only when a compartment has at least two items in it with
public, protected, private, or package visibility styles.
To filter compartment items by visibility and selection:
- In the diagram editor, right-click a shape; then
click .
- In the Sort/Filter Compartment Items window,
select a compartment.
- Under Filter Criteria, select
the visibility style or styles of compartment items and click the Move
to the Left button (<).
- Select or clear the check boxes for each compartment
item that you want to make visible or not and click Apply.
- Click OK.