Overview of creating new diagram and item types through stereotypes
You cannot create new diagram and item types as such, but you can use Stereotypes to customize diagrams and items so that they appear and behave like new diagram and item types.
Creating new diagram types
A Stereotype can change the appearance and behavior of a diagram in the following ways:
• Change the displayed Type for the diagram, that is, the name of the Type that appears in the diagram's Property Pages. You do this through the Override Type Name check box on the Directly-Stereotyped Options tab.
• Change the diagram toolbar that is used for the diagram. The new toolbar can use existing toolbar buttons and customized toolbar buttons that run scripts against the items they add to the diagram. For more information, see
Overview of extending diagram toolbars through stereotypes and scripts.
• Add new commands to the diagram's context menu. In addition, you can hide Add, New and Populate submenu commands that appear on the diagram's context menu when you right-click the diagram background. For more information, see
Overview of extending context menu commands through stereotypes and scripts.
Creating new item types
A Stereotype can change the appearance and behavior of an item in the following ways:
• Change the displayed Type for the item, that is, the name of the Type that appears in the item's Property Pages. You do this through the Override Type Name check box on the Directly-Stereotyped Options tab.
• Add new commands to the diagram's context menu. In addition, you can hide Add, New and Populate submenu commands that appear on the diagram's context menu when you right-click the diagram background. For more information, see
Overview of extending context menu commands through stereotypes and scripts.