Specifying icons and graphics for UML stereotypes

You can specify an icon and a graphic to identify each stereotype that you create. When you apply the stereotype to a model element, the specified icon is displayed beside the stereotype name and the specified graphic replaces the default graphic for a diagram element in the diagram editor. GIF or JPG files are the recommended file formats for stereotype icons and SVG is the recommended file format for diagram editor graphics.

Before you begin

Before you can associate an icon with a stereotype, a custom profile that contains the stereotype must be open in the Project Explorer view.

Procedure

  1. In the Project Explorer view, click a stereotype.
  2. In the Properties view, click the General tab.
  3. To specify an icon for the Project Explorer view, in the Icon field, specify the location of a GIF or JPG file.
    Tip: The recommended size for icons is 16 x 16 pixels.
  4. To specify a graphic for the diagram editor, in the Shape Image field, specify the location of an SVG file.
    Tip: The recommended size for diagram editor graphics is 50 x 50 pixels.
  5. Optional: To hide a stereotype name, icon, and diagram editor graphic, in the Properties view, on the General page, select the Suppressed check box.

Feedback