ModifyNodeTouchController
open class ModifyNodeTouchController : TouchInputController
Represents a controller that handles touch input by modifying existing nodes. Inherits the TouchInputController class.
-
Initializes a new instance of the ModifyNodeTouchController class.
Parameter
Parameter node: The DiagramNode that is modified.Parameter
Parameter adjustmentHandle: The node’s adjustment handle dragged by the user’s gestures.
Returns
A new instance of the ModifyNodeTouchController class.
Declaration
Swift
public init(node:DiagramNode, adjustmentHandle:NodeAdjustmentHandle)
Parameters
node
The DiagramNode that is modified.
adjustmentHandle
The node’s adjustment handle dragged by the user’s gestures.
Return Value
A new instance of the ModifyNodeTouchController 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. -
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. -
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. -
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.