Search
DiagramLink Methods
 


 Public Methods

  Name Description

addCanvasElements

Derived classes must implement this method by adding their graphics primitives to the canvas.elements collection. (Inherited from DiagramItem.)

addLabel

Adds a new label to this link.

allowDrag

DiagramItem.allowDrag override.

animate

Animates the item. (Inherited from DiagramItem.)

clone

DiagramItem.clone override.

containsPoint

DiagramItem.containsPoint override.

endDrag

DiagramItem.endDrag override.

fromJson

Deserializes this item from a JSON object. (Inherited from DiagramItem.)

fromJson

DiagramItem.fromJson override.

getLength

Gets the length of the links

getRepaintBounds

Gets the repaint region for this item, taking into account factors such as pen width, selection handles and shadow. (Inherited from DiagramItem.)

hitTest

Returns the diagram item that contains the specified point. (Inherited from DiagramItem.)

intersects

Checks whether the link contour intersects with the outline of the specified node.

invalidate

Invalidates the region of the canvas, that matches the item's repaint bounds. (Inherited from DiagramItem.)

loadFromXml

DiagramItem.LoadFromXml override. Loads the link's content from an XML element.

onRemove

Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo. (Inherited from DiagramItem.)

pointAlongLength

Returns a point lying on a polyline that is positioned at a relative position along the polyline's length.

putEndPointsAtNodeBorders

Places the link's end points on the outline of its origin and destination nodes.

removeCanvasElements

Derived classes must implement this method by removing their graphics primitives from the canvas.elements collection. (Inherited from DiagramItem.)

removeLabel

Removes the specified label from this item. (Inherited from DiagramItem.)

removeLabel

Removes the specified label from this link.

restoreLocationState

DiagramItem.restoreLocationState override.

restoreState

DiagramItem.restoreState override.

restoreState

Loads the properties of this diagram item. (Inherited from DiagramItem.)

route

Routes this link, regardless of whether the link's autoRoute property is enabled.

saveLocationState

DiagramItem.saveLocationState override.

saveState

DiagramItem.saveState override.

saveToXml

Saves the item's content into an XML element.

setDestination

Sets the destination node of this link.

splitSegment

Splits the link segment with the specified index at the specified point.

startDrag

DiagramItem.startDrag override.

toJson

DiagramItem.toJson override.

updateCanvasElements

Updates the elements on the HTML Canvas.

updateDrag

DiagramItem.updateDrag override.

updateFromPoints

Updates the link's internal state after the link's control points have been changed.

 See Also