I

IReshapeHandler

Interface for an object that can be interactively reshaped in a CanvasComponent
Inheritance Hierarchy

Remarks

Items can be reshaped interactively and an instance of this class can be used to handle that process. A reshape operation will be initialized by a call to initializeReshape, then zero or more handleReshape calls follow, and the operation will be finalized by a call to either reshapeFinished or cancelReshape. Note that implementations of this class will only be used during interactive reshape operations.

See Also

Developer's Guide

API

IDragHandler, IPositionHandler, IHandle, IInputModeContext

Members

No filters for this type

Properties

Gets a view of the bounds of the item.
The rectangle describes the current world coordinates of the element that can be modified by this handler.
readonlyabstract

Methods

Called by clients to indicate that the reshaping has been canceled by the user.
This method may be called after the initial initializeReshape and zero or more invocations of handleReshape. Implementations should reset the bounds of the items they modify to their initial state. Alternatively to this method the reshapeFinished method might be called.
abstract

Parameters

context: IInputModeContext
The context to retrieve information about the reshaping from.
originalBounds: Rect
The value of the coordinates of the bounds property at the time of initializeReshape.

See Also

Developer's Guide
Called by clients to indicate that the element has been dragged and its position should be updated.
This method may be called more than once after an initial initializeReshape and the final call will be followed by either one reshapeFinished or one cancelReshape call.
abstract

Parameters

context: IInputModeContext
The context to retrieve information about the reshaping from.
originalBounds: Rect
The value of the bounds property at the time of initializeReshape.
newBounds: Rect
The coordinates of the bounds in the world coordinate system that the client wants the shape to be at. Depending on the implementation, the bounds may or may not be modified to reflect the new value.

See Also

Developer's Guide
Called by clients to indicate that the element is going to be reshaped.
This call will be followed by one or more calls to handleReshape, and a final reshapeFinished or cancelReshape.
abstract

Parameters

context: IInputModeContext
The context to retrieve information about the drag from.

See Also

Developer's Guide
Called by clients to indicate that the reshaping has just been finished.
This method may be called after the initial initializeReshape and zero or more invocations of handleReshape. Alternatively to this method the cancelReshape method might be called.
abstract

Parameters

context: IInputModeContext
The context to retrieve information about the drag from.
originalBounds: Rect
The value of the coordinate of the bounds property at the time of initializeReshape.
newBounds: Rect
The coordinates of the bounds in the world coordinate system that the client wants the shape to be at. Depending on the implementation the bounds may or may not be modified to reflect the new value. This is the same value as delivered in the last invocation of handleReshape.

See Also

Developer's Guide

Static Methods

static

Parameters

Return Value

IReshapeHandler