ViewLink class
ViewLink overview
class ViewLink extends ViewElement;
Graphical link. A Link is drawn between two ViewElements. It represents Elements such as Dependencies, Associations, Transitions, …

Figure 10. Detailed class diagram of ViewLink
ViewLink properties
The ViewLink class has the following associations:
· OriginPosition:Point: Origin point of the link.
· IntermediatePosition:Point: Set of points that defines the intermediate angles of the link.
· DestinationPosition:Point: Destination Point of the Link.
The ViewLink class has the following attributes:
· rakeMode: Determines whether or not adjacent links of the same kind must be in rake mode. This only functions for "generalization" links.
ViewLink constructor
ViewLink Diagram:createAndAddViewLink
(in Element linkModel);
Adds to a diagram a link which represents the "linkModel" element. The link is, by default, a straight line between the centers of origin boxes and link end-points.
It is not possible to create J return messages, since these are automatically created.
ViewLink method
ViewLink:addPoint (in integer x, in integer y);
Adds a links to an intermediary point. We then have a "broken" link.
ViewElement Diagram:GetLinkDestination
(in ViewLink link)
ViewElement
Diagram:GetLinkOrigin
(in ViewLink link)
These methods allow the origin and destination elements of a link to be found. In general, "ViewBox" is concerned, but links on links can also exist.