Filtering compartment items by visibility and selection

In UML visualization, you can specify which compartment items are visible or not by defining their visibility criteria and 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.

 

Parent topic

Filtering and sorting compartment items

 

Related concepts

Class shapes
Visibility

 

Related tasks

Filtering compartment items by visibility
Filtering compartment items by selection
Sorting compartment items by visibility
Sorting compartment items by visibility while filtering by selection
Sorting compartment items by name
Sorting attributes by type
Sorting operations by return type