Filtering compartment items by visibility and selection

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:
  1. In the diagram editor, right-click a shape; then click Filters > Sort/Filter Compartment Items.
  2. In the Sort/Filter Compartment Items window, select a compartment.
  3. Under Filter Criteria, select the visibility style or styles of compartment items and click the Move to the Left button (<).
  4. Select or clear the check boxes for each compartment item that you want to make visible or not and click Apply.
  5. Click OK.
Related concepts
UML shapes
Classes
Visibility attributes in UML diagrams
Related tasks
Filtering compartment items by visibility
Filtering compartment items by selection
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.