UML Profile for Modeling in Color

The UML Profile for Modeling in Color provides several new stereotype options for the following diagram elements:

Diagram Element
Stereotype
Class role
Class moment-interval
Class mi-detail
Class party
Class place
Class thing
Class description
Class container
Interface role
Interface moment-interval
Interface mi-detail
Interface party
Interface place
Interface thing
Interface description
Interface container

When applying a stereotype to one of the diagram elements listed in the table, the view of the associated diagram element changes on the diagram. The stereotype field displays directly above the name field for the element, and the color of the element depends on the stereotype chosen.

This profile includes the four interconnected archetypes:

For detailed information about modeling in color, refer to Java Modeling in Color with UML: Enterprise Components and Process by Peter Coad, Jeff De Luca, and Eric Lefebvre.

Adding a Stereotype

Add a stereotype to an element by using the Properties view. By default, the Properties view is displayed. However, if needed, open the Properties view by selecting Window > Show View > Properties from the menubar, or simply right click on the diagram element in the Diagram view or UML Navigator view, and select Properties from the context menu.

To apply a stereotype:

  1. Click on the diagram element in the Diagram view or in the UML Navigator view. The corresponding properties page displays for the diagram element.


  2. Select the stereotype field, and click the ellipsis to open the stereotype dialog box.


  3. Using the drop-down arrow, scroll to and select the desired stereotype from the list.

Once a stereotype has been added to an element, it can be edited directly on the diagram. You can double-click the stereotype field to enable the in-place editor. Deleting the stereotype field from the element on the diagram removes the stereotype property.

Tip: Object elements assigned to a class containing a modeling in color stereotype will be filled with the same stereotype color.