Interface used for implementations that recognize, approve, and disapprove stripe reparenting gestures, as well as actually perform the reparenting.
Inheritance Hierarchy
Members
No filters for this type
Methods
This method is called to determine whether a reparent operation should actually be executed.
abstract
Parameters
- context: IInputModeContext
- The context that provides information about the user input.
- stripe: IStripe
- The stripe that will be reparented.
- newParent: IStripe
- The potential new parent.
- index: number
- The index where the stripe would be reparented
- reparentPosition: StripeReparentPolicy
- Where to place the stripe as a result of the gesture that would be used for the reparent operation.
Return Value
- boolean
- Whether
newParentis a valid new parent forstripefor the given index and gesture.
Implemented in
ReparentStripeHandler.isValidParentabstract
Parameters
- context: IInputModeContext
- The context that provides information about the user input.
- movedStripe: IStripe
- The stripe that will be reparented.
- newParent: IStripe
- The potential new parent.
- index: number
- The index where the stripe should be inserted.
- reparentPosition: StripeReparentPolicy
- Where to place the stripe as a result of the gesture that triggered the reparent operation.
Implemented in
ReparentStripeHandler.reparentDetermines whether the user may detach the given stripe from its current parent in order to reparent it.
Determines whether the user may detach the given stripe from its current parent in order to reparent it.
abstract
Parameters
- context: IInputModeContext
- The context that provides information about the user input.
- stripe: IStripe
- The stripe that is about to be detached from its current parent.
Return Value
- boolean
- Whether the stripe may be detached and reparented.