ModifyLinkTouchController

open class ModifyLinkTouchController : TouchInputController

Represents a controller that handles touch input by modifiying existing links. Inherits the TouchInputController class.

  • Initializes a new instance of the ModifyLinkTouchController class.

    Parameter

    Parameter diagram: The diagram instance, which holds the modified link.

    Parameter

    Parameter link: The type of the link to create.

    Parameter

    Parameter adjustmentHandle: The link’s handle modified by the user’s gestures.

    Returns

    A new instance of the ModifyLinkTouchController class.

    Declaration

    Swift

    public init(diagram:Diagram, link:DiagramLink, adjustmentHandle:LinkAdjustmentHandle)

    Parameters

    diagram

    The diagram instance, which holds the modified link.

    link

    The type of the link to create.

    adjustmentHandle

    The link’s handle modified by the user’s gestures.

    Return Value

    A new instance of the ModifyLinkTouchController class.

  • Overrides TouchInputController.onTouchDown.

    Parameter

    Parameter position: The point where the user has touched the surface.

    Parameter

    Parameter positionB: The point where the users has touched the surface with the second finger.

    Declaration

    Swift

    open override func onTouchDown(_ position:Point, positionB:Point)

    Parameters

    position

    The point where the user has touched the surface.

    positionB

    The point where the users has touched the surface with the second finger.

  • Overrides TouchInputController.onTouchMove.

    Parameter

    Parameter position: The point where the user has moved their finger.

    Parameter

    Parameter positionB: The point where the users has moved their second finger.

    Declaration

    Swift

    open override func onTouchMove(_ position:Point, positionB:Point)

    Parameters

    position

    The point where the user has moved their finger.

    positionB

    The point where the users has moved their second finger.

  • Overrides TouchInputController.onTouchUp.

    Parameter

    Parameter position: The point where the user has lift their finger.

    Parameter

    Parameter positionB: The point where the users has lift their second finger.

    Declaration

    Swift

    open override func onTouchUp(_ position:Point, positionB:Point)

    Parameters

    position

    The point where the user has lift their finger.

    positionB

    The point where the users has lift their second finger.

  • Overrides TouchInputController.onCancel.

    Parameter

    Parameter position: The point where the user’s finger was located when the action was canceled.

    Parameter

    Parameter positionB: The point where the user’s second finger was located when the action was canceled.

    Declaration

    Swift

    open override func onCancel(_ position:Point, positionB:Point)

    Parameters

    position

    The point where the user’s finger was located when the action was canceled.

    positionB

    The point where the user’s second finger was located when the action was canceled.