This class 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.
Name | Description | |
---|---|---|
Overloaded. Initializes a new instance of the ConnectionPoint class. |
Name | Description | |
---|---|---|
Gets or sets the anchor point associated with the connection point. |
||
Gets the index of a constituent item within the associated node where the link represented by this connection point is connected, or -1, if the link is connected to the node itself. |
Name | Description | |
---|---|---|
Gets a flag indicating whether this connection point is at the origin or the destination of the associated link. |
||
Gets the link associated with this connection point. |
||
Gets the node associated with this connection point. |
Name | Description | |
---|---|---|
Adds the link associated with this connection point to the associated node. |
||
Aligns the specified point to the nearest anchor point of the connected node. |
||
Determines whether the end of a link should be aligned to the point where the node contour is intersected by the line connecting the centers of the connected nodes. |
||
Checks whether the specified point, expressed in document coordinates, is a valid location for this connection point. |
||
Overloaded. Returns a point from the node's associated anchor pattern. |
||
Calculates the coordinates of the this connection point expressed in document coordinates. |
||
Returns a point (usually the center of the bounding rectangle) contained within the associated node. |
||
Calculates the intersection point between the specified line segment and the contour of the node associated with this connection point. |
||
Returns the bounding rectangle of the node associated with this connection point. |
||
Checks whether the relationship represented by the associated link would change if the link is attached to the specified node at the specified point. |
||
Returns the anchor point closest to the specified point from the node's associated anchor pattern. |
||
Checks whether the node associated with the current connection point and the node associated with the specified connection point intersect. |
||
Overloaded. Returns the position of the connection point. |
||
Removes the link associated with this connection point from the associated node. |
||
Checks whether the current connection point and the specified connection point are associated with the same node. |
Name | Description | |
---|---|---|
Returns the nearest point lying on the node border. |
||
Updates the connection state according to the specified point, without changing the related node. |