doMouseUp method

void doMouseUp()

A mouse-up ends the relinking operation; if there is a valid #targetPort nearby, this modifies the old link to connect with the target port.

A successful relinking calls #reconnectLink to actually change the link. The "LinkRelinked" DiagramEvent is raised with the link as the DiagramEvent#subject and with the now-disconnected original port as the DiagramEvent#parameter. If the link was not reconnected, this calls #doNoRelink. In any case this stops the tool.

A failure to find a valid target port results in no changes and no DiagramEvent.

This method may be overridden, but we recommend that you call this base method. You might find it easier to override #reconnectLink. It is actually most common to implement a "LinkRelinked" DiagramEvent listener on the Diagram.

Implementation

void doMouseUp() {
  _i4.callMethod(
    this,
    'doMouseUp',
    [],
  );
}