You can add customized diagrams by creating a new diagram
type by one of the basic diagrams and adding customized diagram elements,
if needed, to the list of elements available for the new type of diagram.
About this task
Customized diagrams
can be added at the individual model level, or they can be added to
profiles so that they can be used with other models as well.
Procedure
- In the browser window, add your customized
profile. (While the customized diagram can be added for the current
model only, typically developers and designers want to add it to a
profile so that it can be reused.)
- Select the name of the new profile in the
browser, and use the menu to create a new stereotype.
- Open the Features window for the new stereotype
you created.
- On the General tab,
from the Applicable to list select the type of diagram that
serves as the base diagram for the new diagram type you are creating.
In addition, select the New Term check box.
- On the Properties tab,
enter the required values for the following properties:
- Model::Stereotype::DrawingToolIcon supplies
the name of the .ico file that is be used as the icon for the new
diagram type in the Diagrams toolbar.
- Model::Stereotype::BrowserIcon supplies
the name of the .ico file that is used as the icon to represent the
new diagram type in the browser.
If no
value is provided for DrawingToolIcon, the file name
entered for BrowserIcon are used in the Diagrams
toolbar as well. If values are not provided for either of these properties,
then the icon for the base diagram is displayed both in the browser
and in the Diagrams toolbar.
- Model::Stereotype::DrawingToolbar is
a comma-separated list representing the elements that must be included
in the Diagram Tools for this type of diagram, for example, RpyDefault,RpySeparator,Actor,Block.
RpyDefault represents
all the elements included in the Diagram Tools of the base
diagram. If this property is left empty, only the tools from the base
diagram are displayed. The toolbar can contain any drawable elements
supported by the base diagram, and any new elements based on these
elements.
- Click OK.