VirtualConnectionPoint

open class VirtualConnectionPoint : ConnectionPoint

Represents a virtual connection point used by unconnected links. This class inherits ConnectionPoint.

  • Initializes a new instance of the VirtualConnectionPoint class with the specified link.

    Declaration

    Swift

    public init(link: DiagramLink, incoming: Bool)

    Parameters

    link

    The link whose connection is managed by this ConnectionPoint.

    incoming

    Specifies which end of the link is represented by this VirtualConnectionPoint.

    Return Value

    The newly created VirtualConnectionPoint instance.

  • Adds the link associated with this connection point to the associated node.

    Declaration

    Swift

    open override func addLinkToNode()
  • Removes the link associated with this connection point from the associated node.

    Declaration

    Swift

    open override func removeLinkFromNode()
  • Moves the appropriate end of this VirtualConnectionPoint to a DiagramNode border point, which is closest to the specified point.

    Declaration

    Swift

    open override func alignToNode(_ point: Point)

    Parameters

    point

    The point, against which the DiagramNode border position will be calculated.