The RichAttributeFigure is used to render an EObject the same way as a simple attribute value (in other words with an AttributeFigure).
It is helpful when it is not necessary to show the whole content of an EObject as a complete node.
A RichAttributeFigure label is configured through an OCL expression (in order to be flexible enough to meet your own needs).
For example, with the school sample, it is possible to represent the Students directly in the Classroom nodes (see the right diagram) instead of representing them fully as nodes (as on the left diagram) :
![]() |
![]() |
![]() |
The RichAttributeFigure accepts the following properties :
Category | Name | Description | Default literal |
---|---|---|---|
Appearance | labelExpression | The OCL expression to use to build the string representation for the EObject that is targeted by the EReference | |
labelStyle | The style of the attribute figure's label | ||
Model | eReference | The EReference that gives the rich attribute(s) EObject(s) |