Prev | Next |
Custom Stereotypes
A custom Stereotype applies a different appearance or characteristic to a basic UML model component or feature. You can apply a custom stereotype in two different ways:
- To change the appearance or property of an instance of a model component of a specific type; these stereotypes are defined on the 'Stereotypes' tab of the 'UML Types' dialog and applied through the 'Properties' dialog of the object, within the model in which they are created, although you can transport custom stereotype definitions between models as Reference Data
- As a simple label on an element, to identify the role or nature of the object that an element represents; these stereotypes are simply names typed into the 'Stereotype' field of the object 'Properties' dialog, and do not affect the element display unless they are subsequently edited to have an effect
The more obvious changes you can make are to the shape, dimensions and appearance of the object, which you can apply by associating a metafile (image file) and customized colors with the stereotype, or by attaching a Shape Script to the stereotype. When you have defined and saved the stereotype, you can then apply it to any new or existing object of the base class with which it is associated.
Access
Ribbon |
Configure > Reference Data > UML Types > Stereotypes |
Maintain custom stereotypes
Option |
Action |
See also |
---|---|---|
Stereotype |
Type or select the name of the stereotype. |
|
Group name |
(Optional) Type a plural name under which to group the stereotype features for attributes and operations; the name will be shown on diagrams in the attributes and operations compartments. |
|
Base Class |
Click on the drop-down arrow and select the name of a pre-existing object type so that the stereotyped element will inherit the base characteristics of that type. |
|
Notes |
(Optional, but recommended) Type any notes concerning the stereotype (not the elements to which the stereotype is to be applied). |
|
New |
Click on this button to clear the above fields to create a new stereotype definition. |
|
Save |
Click on this button to save a new or edited stereotype definition. |
|
Delete |
Click on this button to delete a stereotype definition from the model. |
|
Override Appearance |
||
None |
Select to retain the default element appearance for this stereotype. |
|
Metafile |
Select to associate the stereotype with an image metafile (.emf or .wmf) to apply that image when the stereotype is used. |
|
Shape Script |
Select to associate the stereotype with a custom shape, created using the Shape Scripting language. |
Shape Scripts |
Assign |
Click on this button to either:
|
|
Edit |
If a Shape Script is already associated with the stereotype, click on this button to open the Shape Editor to update the Shape Script. |
|
Remove |
Remove the associated metafile or Shape Script from the stereotype. |
|
Default Colors |
||
Fill |
Click on the drop-down arrow and select or define the default background color of the elements to be refined by the stereotype. This color will be applied to all occurrences of any element to which the stereotype has been applied; if the color is subsequently changed, the change is immediately applied to all occurrences of any element to which the stereotype was applied (as for changes to any other property of the stereotype). However, on elements created with the stereotype, the default color might be overridden by other color definitions of a higher priority that have been applied to the element. |
|
Border |
Click on the drop-down arrow and select or define the default color of the borders of the elements to be refined by the stereotype. |
|
Font |
Click on the drop-down arrow and select or define the default color of the text of the elements to be refined by the stereotype. |
|
Reset |
Reset the default colors to those of the base element with which the stereotype is associated. |
Notes
Learn more