MindFusion.Diagramming for JavaScript Programmer's Guide

DiagramLink Members

Constructors Methods
 


Represents a link between two diagram nodes.

The following tables list the members exposed by the DiagramLink type.

 Public Constructors

  Name Description

DiagramLink

Initializes a new instance of the DiagramLink class between the specified nodes using the specified diagram link as a prototype.

 Public Methods

  Name Description

addHandlesToCanvas

Adds the link's adjustment handles to the drawing canvas.

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 shape displayed at the beginning of a link.

getControlPoints

Gets a collection of the control points of this link.

getDestination

Gets the destination node of this link.

getEndPoint

Gets the mouse position where the user ended drawing or modifying a link.

getHeadBrush

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

getOrigin

Gets the origin of the DiagramLink.

getShape

Gets the type of link segments and how they are positioned one relatively to another.

getStartPoint

Gets the mouse position where the user starts drawing or modifying the link.

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.

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 a link.

setControlPoints

Sets a collection of the control points of this link.

setDestination

Sets the destination node 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 beginning of a link.

setOrigin

Sets the origin of the DiagramLink.

setShape

Sets the type of link segments and how they are positioned one relatively to another.

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