MindFusion.Diagramming for JavaScript Programmer's Guide
DiagramLink Methods
 


 Public Methods

  Name Description

addLabel

Adds a new label to this link.

allowDrag

DiagramItem.allowDrag override.

containsPoint

DiagramItem.containsPoint override.

endDrag

DiagramItem.endDrag override.

getAutoRoute

Gets a value indicating whether a link should avoid nodes by going the shortest path from its origin to its destination without crossing any other nodes.

getBaseBrush

Gets an object that specifies how to paint the interior of the link's base shape.

getBaseShape

Gets the shape displayed at the beginning of this link.

getBaseShapeSize

Gets the size of the shape displayed at the beginning of this link.

getControlPoints

Gets a collection of the control points of this link.

getDestination

Gets the destination node of this link.

getDynamic

Gets a value indicating whether a link automatically adjusts its end points' positions in order to keep pointing to the centers of nodes that it connects.

getEndPoint

Gets the last control point of this link.

getHeadBrush

Gets a Brush that specifies how to paint the interior of the link's arrowhead shape.

getHeadShape

Gets the shape displayed at the end of this link.

getHeadShapeSize

Gets the size of the shape displayed at the end of this link.

getOrigin

Gets the origin node of this link.

getSegmentCount

Gets the number of segments that form the link's geometry.

getShape

Gets the type of link segments and how they are positioned relatively to each other.

getStartPoint

Gets the first control point of this link.

getText

Gets the text displayed over this link.

getTextAlignment

Gets the link's text alignment.

getTextStyle

Gets the link's text placement and orientation.

getTopLevel

DiagramItem.getTopLevel override.

intersects

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

putEndPointsAtNodeBorders

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

removeLabel

Removes the specified label from this link.

restoreLocationState

DiagramItem.restoreLocationState override.

route

Routes this link, regardless of whether the link's AutoRoute flag is enabled.

saveLocationState

DiagramItem.saveLocationState override.

setAutoRoute

Sets a value indicating whether a link should avoid nodes by going the shortest path from its origin to its destination without crossing any other nodes.

setBaseBrush

Sets an object that specifies how to paint the interior of the link's base shape.

setBaseShape

Sets the shape to display at the beginning of this link.

setBaseShapeSize

Gets the size of the BaseShape shape.

setControlPoints

Sets a collection of the control points of this link.

setDestination

Sets the destination node of this link.

setDynamic

Sets a value indicating whether a link automatically adjusts its end points' positions in order to keep pointing to the centers of nodes that it connects.

setEndPoint

Sets the last control point of this link.

setHeadBrush

Sets a Brush that specifies how to paint the interior of the link's arrowhead ShapeNode.

setHeadShape

Sets the shape to display at the end of this link.

setHeadShapeSize

Gets the size of the arrowhead shape.

setOrigin

Sets the origin node of this link.

setSegmentCount

Sets the number of segments that form the link's geometry.

setShape

Sets the type of link segments and how they are positioned relatively to each other.

setStartPoint

Sets the first control point of this link.

setText

Sets the text displayed over a link.

setTextAlignment

Sets the link's text alignment.

setTextStyle

Sets the link's text placement and orientation.

startDrag

DiagramItem.startDrag 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

DiagramLink Class
MindFusion.Diagramming Namespace