Java Reference
In-Depth Information
Element
Property
Value
Background Color
Value
White
Template Point
X, Y
-1, -1
Template Point
X, Y
-2, 0
Template Point
X, Y
-1, 1
Template Point
X, Y
0, 0
Figure Descriptor
Name
BasicLink
Polyline Connection
Name
BasicLink
Figure Descriptor
Name
BasicLabel
Label
Name
BasicLabel
Connection
Name
Aggregation
Figure
Figure Descriptor SolidLineHollowDiamond
Connection
Name
Association
Figure
Figure Descriptor BasicLink
Diagram Label
Name
LinkTarget
Figure
Figure Descriptor BasicLabel
Diagram Label
Name
LinkTarget
Figure
Figure Descriptor BasicLabel
Element Icon
False
Alignment Facet
Alignment
BEGINNING
Label Offset Facet
X, Y
0, -10
These connection definitions are straightforward, although you might have
noticed that we don't use link name labels in the diagram. We might add them
later, but for now we want to keep our diagram as simple and uncluttered as
possible.
The final elements that require definition at this point are the Annotation
note and link. This time, we use a dashed line connection figure provided in
the GMF classDiagram.gmfgraph model. To reference this or any other
. gmfgraph model, right-click on the editor surface and select Load Resource from
the menu. Enter the URI to the model in the dialog, as shown in Figure 4-42.
 
Search WWH ::




Custom Search