Defining attributes
60
Displaying text in attribute symbols
An attribute has the following display preferences:
Preference Description
Show visibility Displays the attribute as an icon, with markers, or using
keywords
Show datatype When selected, displays the datatype of the attribute in the
attribute symbol
Show initial value When selected, displays the initial value of the attribute in the
attribute symbol
The visibility of an attribute in a class or an interface can be displayed in one
of the following ways:
Visibility When selected
Icon Displays the attribute as an icon
Markers Displays the visibility of the attribute as a marker:
- (private), # (protected), + (public), or * (package)
Keywords Displays the visibility of the attribute as a word:
private, protected, public, or package
You modify the display preferences for an attribute in the Display
Preferences dialog box.
v To modify the display preferences:
1 Select Tools➤Display Preferences.
or
Right-click the diagram background and select Display Preferences from
the contextual menu.
The Display Preferences dialog box appears.
2 Expand the Object View node in the Category list.