You can specify which items are visible by selecting
their visibility criteria.
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:
- 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, click the Move
to the Left button (<), and
click Apply.
- Click OK.