Showing or Hiding Tagged Values
When an element has tagged values, you can view all the respective tagged values either in a standalone box, or inline, as a compartment. You can also hide tagged values completely. To choose how tagged values should be displayed, right-click the element on the diagram, and select Tagged Values | <display option>. For example, to display all tagged values outside of the class, right-click the class on the diagram, and select Tagged Values | all. To hide all tagged values of a class, right-click the class on the diagram, and select Tagged Values | none.
Tagged values displayed outside a class
Toggle compact mode
When some values in a tagged values box are empty, you can hide only the empty values, as follows:
1.Select a tagged values box on the diagram (one that has both empty and non-empty values).
2.Click the Toggle compact mode handle in the bottom-right corner of the box.
When the handle is in expanded state , the empty values are shown as well. When the handle is in collapsed state , the empty values are hidden.
Changing the display of tagged values globally
You can change the display of tag values either individually for each element as shown above, or globally at project level.
To change tag values at project level:
1.Select Project Styles from the list at the top of the Styles Window.
2.Scroll down until to the Show Tagged Values property and select the required option from the list (for example, all, hide empty).
For information about changing styles at various levels, see Changing the Style of Elements.
Possible display options
The possible options for controlling the display of tagged values are listed in the table below. These options are similar when you change tagged values globally or for individual elements.
None | Hides all tagged values. |
All | Displays the tagged values of an element (for example, a class) as well as those of elements owned by the class, such as attributes and operations. |
All, hide empty | Displays only those tagged values where a value exists. |
Element | Displays the tagged values of an element (for example, a class) but not those of owned attributes, operations, and so on. |
Element, hide empty | Displays only those tagged values of an element where a value exists. |
In compartment | Displays the tagged values in a separate compartment. For example, the class illustrated below has an «attributes» compartment that contains tagged values. |
In compartment, hide empty | Displays only those tagged values where a value exists, in a compartment. |
In compartment, compact | Same as above. |