Search
ConnectionPoint Members
Constructors Properties Methods
 


A class that represents a connection between an edge and a node in a graph. It decouples the DiagramLink class from the DiagramNode class, allowing edges to connect different types of nodes without knowing anything of their implementation details. Each DiagramLink object contains two ConnectionPoint instances describing the connections at both ends of the link.

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

 Public Constructors

  Name Description

ConnectionPoint

Initializes a new instance of the ConnectionPoint class between the specified node and link.

 Public Properties

  Name Description

endPoint

Calculates the coordinates of this connection point expressed in document coordinates.

 Public Methods

  Name Description

addLinkToNode

Adds the DiagramLink associated with this connection point to the associated DiagramNode.

getInitialPoint

Returns a Point (usually the center of the bounding rectangle) contained within the associated node.

getIntersection

Calculates the intersection point between the specified line segment and the contour of the node associated with this connection point.

getNearestAnchorPoint

Returns the nearest anchor Point pertinent to this connection.

getNearestBorderPoint

Returns the nearest point lying on the DiagramNode border.

getNodeRect

Returns the bounding rectangle of the node associated with this connection point.

linkChanges

Checks whether the link would change if attached to the specified node at the specified point.

nodesIntersect

Checks whether the node associated with the current connection point and the node associated with the specified connection point intersect.

removeLinkFromNode

Removes the link associated with this connection point from the associated node.

saveEndRelative

Updates the coordinates of the connection point represented by this link, relative to the bounding rectangle of the associated node.

 See Also