IReshapeHandler implementation that constrains node resizes so that minimum size constraints of an associated ITable are satisfied and which resizes the outer IStripes of such a table when the node is resized.
Implements
- I
Remarks
The constraints are applied in addition to any constraints imposed by the IReshapeHandler which is wrapped by this implementation.
Members
No filters for this type
Constructors
Creates a new instance of this Handler which wraps an existing instance of coreHandler and uses table for additional constraints.
Creates a new instance of this Handler which wraps an existing instance of
coreHandler and uses table for additional constraints.In addition, table's outer stripes are resized if necessary.
table should be associated with tableNode
Parameters
- coreHandler: IReshapeHandler
- The handler that is wrapped by this instance.
- tableNode: INode
- The node for which this handler is used
- table: ITable
- The table that is used for additional constraints.
Properties
Gets a view of the bounds of the item.
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.
readonlyfinal
Implements
IReshapeHandler.boundsGets the core reshape handler wrapped by this instance.
Gets the core reshape handler wrapped by this instance.
readonlyfinal
Gets the table used for additional constraints.
Gets the table used for additional constraints.
readonlyfinal
Gets the node this handler is used for.
Gets the node this handler is used for.
readonlyfinal
Methods
Called by clients to indicate that the reshaping has been canceled by the user.
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.
final
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.
Implements
IReshapeHandler.cancelReshapeCalled by clients to indicate that the element has been dragged and its position should be updated.
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.
final
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.
Implements
IReshapeHandler.handleReshapeCalled by clients to indicate that the element is going to be reshaped.
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.
final
Parameters
- context: IInputModeContext
- The context to retrieve information about the drag from.
Implements
IReshapeHandler.initializeReshapeCalled by clients to indicate that the reshaping has just been finished.
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.
final
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.