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 can associate an icon with a stereotype, a custom profile that contains the stereotype must be open in the Model Explorer view.
To specify an icon and a graphic for a stereotype:
  1. In the Model Explorer view, click a stereotype.
  2. In the Properties view, click the General tab.
  3. To specify an icon for the Model Explorer view, in the Icon field, specify the location of a GIF or BMP 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.
Related concepts
Custom UML profiles
Related reference
Stereotypes and constraints
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.