Element Display Styles

We saw in the overview page for the Profile that each Element Binding connects an Element Set with an Element Display Style. While an Element Set is concerned with defining a group of elements it says nothing about how to display elements on a diagram. Conversely, an Element Display is wholly concerned with how an element is displayed while saying nothing about which elements are to be displayed that way.

There are four element types and each has its own display style.

Inherited Values

Element Display Styles support an inheritance mechanism. A new Element Display Style can take an existing Element Display Style as the basis for all of its attribute values. For example, rather than define all seventeen attributes for a Method Display Style, you can choose an existing Method Display Style which is close to how you want a method to look, and override only those attributes which you would like to be different.

Common Attributes

Element Display Styles shape the appearance of elements on the diagrams. They are independent of any Diagram Style; so once defined, they are available for re-use across many Diagram Styles. There are some attributes common to all four concrete display styles which we will deal with first:

Class Display Style

This display style describes how to display a class.

Field Display Style

This display style describes how to display a field.

Initializer Display Style

There are no additional attributes for an Initializer Display Style.

Method Display Style

This display style describes how to display methods (including constructors).