In UML diagrams, several diagram elements have compartments that
display textual and graphical information. You can reduce the visual clutter
and complexity in diagrams by filtering the contents of these compartments.
Filtering hides information based on criteria that you specify.
You can filter compartment items by visibility or by selecting specific
items that you want to hide.
To filter compartment items in a UML diagram:
The UML diagram is updated to show or hide the attributes and operations
based on the filtering selections that you made.
For example, you have a class that has four attributes. One of the
attributes has private visibility, one has protected visibility, and two have
public visibility. As the following figure illustrates, in the
Sort/Filter
Compartment Items window, if you move
private and
public into
the
Filter Items Containing list, this clears the check
boxes for the attributes with public visibility and private visibility. Only
the attribute with protected visibility remains selected.
Now, as
the following figure illustrates, if you select the check box for attribute1
in the table, private and public move
from the Filter Items Containing list back into the Filter
Criteria list. The check boxes for attribute1 and attribute4 are
selected in the table.
Finally, as the following figure illustrates, if
you move private back into the Filter Items
Containing list, all of the check boxes are selected except for
the attribute with private visibility.