Customization > Extensibility Through Profiles, Stereotypes, Tag Definitions and Scripts > Extensibility through stereotype scripts and script items > Displaying stereotypes through stereotype scripts and script items > Overview of displaying stereotype and tag definition information on diagrams
  
Overview of displaying stereotype and tag definition information on diagrams
Modeler allows you to display Stereotype and Tag Definition information for items shown on a diagram. This information can clutter a diagram, so by default a diagram hides all Stereotypes and Tag Definitions.
* 
For the following diagram items, you can display Stereotypes and Tag Definitions in their own compartments through style settings: Classes, Data Types, Interfaces and Signals on Composite Structure Diagrams and Class Diagrams, Parts on Composite Structure Diagrams, Actions on General Flow Diagrams, and Notes on all diagram types when any item is linked to that Note. For more information about compartments, see Overview of defining diagram symbol compartments through stereotypes.
When Stereotypes are displayed on a diagram, the Stereotype information is typically displayed above the name of the item that is Stereotyped.
The Stereotype and Tag Definition information uses the following notation.
Through the Vertical Arrangement check box on an item's View Options, you can display a Stereotype's Tag Definitions to the right of the Stereotype or below the Stereotype.
If only the Stereotype names are displayed for an Attribute, Operation or Column, the Stereotype information is displayed to the left of the item name rather than above it.
In accordance with UML, for Boolean Tag Definitions only the Name is shown when True and no Name is shown when False.
Through the View Options, you can display a Stereotype's Tag Definitions either below or to the right of the Stereotype.
For Text and Rich Text Tag Definitions, only the first paragraph of the tagged value is shown on the diagram.
* 
If a Symbol on a General Flow Diagrams or General Graphic Diagram has been linked with an item, the linked item's Stereotypes and Tag Definitions can be shown on the diagram.
You cannot show Stereotypes and Tag Definitions on Bind Dependencies.
You control which Stereotypes and Tag Definitions are displayed on a diagram through the following settings:
For the Diagram, you specify which Stereotypes can be shown.
You do this through the Diagram's View Options.
* 
If a Stereotype is set up to be shown on all diagrams, the Stereotype can be shown on the diagram even if it is not listed on the Shown Stereotypes tab.
For the Diagram, you specify which Tag Definitions can be shown.
You do this through the Diagram's View Options.
* 
If a Tag Definition is set up to be shown on all diagrams, the Tag Definition can be shown on the diagram even if it is not listed for the Shown Tag Defs entry.
For each item on the diagram, you specify whether you want to show or hide its Stereotypes and Tagged Definitions.
You do this through an item's View Options. On the Stereotypes tab, you either select or clear the Show Stereotypes and Show Tags check boxes.
For an item to show its Stereotypes and tagged values on a diagram:
The Diagram must be linked to the item's Stereotypes through the Shown Stereotypes link, or the Stereotype must be set up as shown on all diagrams.
The Diagram must be linked to the item's Tagged Definitions through the Shown Tagged Definitions link, or the Tag Definition must be set up as shown on all diagrams.
The item's View Options must be set to Show Stereotypes.
You can determine whether an item added to a diagram shows or hides its Stereotypes by default through the View Options of the diagram. The Stereotypes tab allows you to specify whether new items show or hide their Stereotypes for each item type.
* 
The diagram View Options affect only new items that are added to the diagram.