Specifying stereotype styles in UML diagrams

In UML diagrams, you can specify the stereotype style for diagram elements or for the attribute and operation compartments in diagram elements. A stereotype is a UML extension mechanism that broadens the UML vocabulary and gives more specific meaning to a diagram element.

For example, you might change how a stereotype for a class is displayed by adding a decorative icon. Specifically, you can choose whether to display stereotypes with decoration icons, with text in double angle brackets (« »), or not to display them at all.

To specify the stereotype style in a UML diagram:

  1. In the diagram editor, select a diagram element or group of elements.
  2. Click Diagram > Filter > Stereotype and Visibility Style and complete one of the following steps:
    • To specify a setting for a diagram element, click a style that is prefaced with Stereotype.
    • To specify a setting for compartments, click a style that is prefaced with Compartment Stereotype.
Note: You can also specify the stereotype styles for diagram elements in the Properties view.
Related concepts
UML stereotypes

Feedback