An implementation of the IPositionHandler interface that can be used to constrain the position of an item.
Implements
- I
- I
- I
Members
Show:
Constructors
Initializes a new instance of the ConstrainedPositionHandler class that delegates to the wrappedHandler.
Initializes a new instance of the ConstrainedPositionHandler class that delegates to the
wrappedHandler.Properties
Gets the wrappedHandler's location property.
Gets the wrappedHandler's location property.
Gets the wrapped handler to which calls will be ultimately delegated.
Gets the wrapped handler to which calls will be ultimately delegated.
protectedreadonlyfinal
Property Value
The wrapped handler.
Defined in
ConstrainedDragHandler.wrappedHandlerMethods
Cancels the move operation and calls onCanceled
Cancels the move operation and calls onCanceled
final
Parameters
- context: IInputModeContext
- The context to retrieve information about the drag from.
- originalLocation: Point
- The value of the coordinate of the location property at the time of initializeDrag.
Defined in
ConstrainedDragHandler.cancelDragApplies the constraints for the new location.
Applies the constraints for the new location.
protectedabstract
Parameters
- context: IInputModeContext
- The context in which the drag will be performed.
- originalLocation: Point
- The value of the location property at the time of initializeDrag.
- newLocation: Point
- The coordinates in the world coordinate system that the client wants the handle to be at. Depending on the implementation the location may or may not be modified to reflect the new value.
Return Value
- Point
- The constrained value of
newLocation.
Handles the finish operation and invokes onFinished
Handles the finish operation and invokes onFinished
final
Parameters
- context: IInputModeContext
- The context to retrieve information about the drag from.
- originalLocation: Point
- The value of the location property at the time of initializeDrag.
- newLocation: Point
- The coordinates in the world coordinate system that the client wants the handle to be at. Depending on the implementation the location may or may not be modified to reflect the new value. This is the same value as delivered in the last invocation of handleMove
Defined in
ConstrainedDragHandler.dragFinishedHandles the move operation and subsequently calls onMoved
Handles the move operation and subsequently calls onMoved
This method will use the constrainNewLocation callback to let subclasses constrain the movement.
final
Parameters
- context: IInputModeContext
- The context in which the drag will be performed.
- originalLocation: Point
- The value of the location property at the time of initializeDrag.
- newLocation: Point
- The coordinates in the world coordinate system that the client wants the handle to be at. Depending on the implementation the location may or may not be modified to reflect the new value.
Defined in
ConstrainedDragHandler.handleMoveInitializes the drag operation and subsequently calls onInitialized
Initializes the drag operation and subsequently calls onInitialized
final
Parameters
- context: IInputModeContext
- The context in which the drag will be performed.
Defined in
ConstrainedDragHandler.initializeDragCalled when the cancelDrag method has been called.
Called when the cancelDrag method has been called.
protected
Parameters
- context: IInputModeContext
- The input mode context.
- originalLocation: Point
- The original location.
Defined in
ConstrainedDragHandler.onCanceledCalled when the dragFinished method has been called.
Called when the dragFinished method has been called.
protected
Parameters
- context: IInputModeContext
- The input mode context.
- originalLocation: Point
- The original location.
- newLocation: Point
- The new location.
Defined in
ConstrainedDragHandler.onFinishedCalled when the initializeDrag method has been called.
Called when the initializeDrag method has been called.
protected
Parameters
- context: IInputModeContext
- The input mode context.
- originalLocation: Point
- The original location.
Defined in
ConstrainedDragHandler.onInitializedCalled when the handleMove operation has been performed.
Called when the handleMove operation has been performed.
protected
Parameters
- context: IInputModeContext
- The input mode context.
- originalLocation: Point
- The original location.
- newLocation: Point
- The new location.