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.
Remarks
Type Details
- yfiles module
- view-table
- yfiles-umd modules
- view-table, view
- Legacy UMD name
- yfiles.input.TableReshapeHandler
Constructors
Creates a new instance of this Handler which wraps an existing instance of coreHandler
and uses table
for additional constraints.
Remarks
In addition, table
's outer stripes are resized if necessary.
table
should be associated to tableNode
Parameters
A map of options to pass to the method.
- 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.
Remarks
Implements
Gets the core reshape handler wrapped by this instance.
Gets the table used for additional constraints.
Gets the node this handler is used for.
Methods
Called by clients to indicate that the reshaping has been canceled by the user.
Remarks
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the reshaping from.
- originalBounds - Rect
- The value of the coordinate of the bounds property at the time of initializeReshape.
See Also
Implements
Called by clients to indicate that the element has been dragged and its position should be updated.
Remarks
Parameters
A map of options to pass to the method.
- 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
Implements
Called by clients to indicate that the element is going to be reshaped.
Remarks
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context to retrieve information about the drag from.
See Also
Implements
Called by clients to indicate that the reshaping has just been finished.
Remarks
Parameters
A map of options to pass to the method.
- 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