RelinkingTool$Typings extension
Properties
- fromHandleArchetype ↔ GraphObject?
-
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Gets or sets a small GraphObject that is copied as a relinking handle for the selected link path at the "from" end of the link. By default this is a Shape that is a small blue diamond. Setting this property does not raise any events.getter/setter pair - handle ↔ GraphObject?
-
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Returns the GraphObject that is the tool handle being dragged by the user. This will be contained by an Adornment whose category is "RelinkFrom" or "RelinkTo". Its Adornment#adornedPart is the same as the #originalLink.getter/setter pair - toHandleArchetype ↔ GraphObject?
-
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Gets or sets a small GraphObject that is copied as a relinking handle for the selected link path at the "to" end of the link. By default this is a Shape that is a small blue diamond. Setting this property does not raise any events.getter/setter pair
Methods
-
canStart(
) → bool -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
This tool can run when the diagram allows relinking, the model is modifiable, and there is a relink handle at the mouse-down point. -
copyLinkProperties(
Link templink, [Link? reallink]) → void -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Make a temporary link look and act like the real Link being relinked. By default this method copies many of the routing-oriented properties from the LinkingBaseTool#originalLink to the LinkingBaseTool#temporaryLink. -
doActivate(
) → void -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Start the relinking operation. -
doDeactivate(
) → void -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Finishing the linking operation stops the transaction, releases the mouse, and resets the cursor. -
doMouseUp(
) → void -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
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. -
doNoRelink(
Link existinglink, bool toend) → void -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
This method is called upon a mouse up when #reconnectLink is not called. -
makeAdornment(
GraphObject selelt, bool toend) → Adornment? -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
(undocumented) Create and return an Adornment that lets the user grab a handle to reconnect one end of the selected link. -
reconnectLink(
Link existinglink, bool toend, [Node? newnode, GraphObject? newport]) → bool -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Modify an existing Link to connect to a new node and port. -
updateAdornments(
Part part) → void -
Available on RelinkingTool, provided by the RelinkingTool$Typings extension
Show an Adornment for each end of the Link that the user may reconnect. The Adornment may have a copy of #fromHandleArchetype and/or #toHandleArchetype.