A specialized version of the IHandleProvider interface that can be used to query IHandle implementations for resizing an object.
Inheritance Hierarchy
IReshapeHandleProvider
Related Programming Samples
- Reshape Handle Provider Configuration
- Shows how resizing of nodes can be customized.
- Reshape Handle Provider
- Shows how to add resize handles to ports.
Type Details
- yFiles module
- view
Methods
Returns a bitwise combination of all of the HandlePositions this interface can provide an implementation for.
Remarks
Client code will use this method to query the available positions and may then call for each of the positions the getHandle method to retrieve an implementation.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The context for which the handles are queried.
Returns
- ↪HandlePositions
- A bitwise combination of all positions the getHandle method can be queried for.
Returns an implementation of an IHandle for the given position, that can be used to reshape an object.
Remarks
This method may be called for each possible single position contained in the set as returned by getAvailableHandles.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The context for which the handles are queried.
- position - HandlePositions
- The single position a handle implementation should be returned for.
Returns
Static Methods
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- getAvailableHandles - function(IInputModeContext):HandlePositions
Returns a bitwise combination of all of the HandlePositions this interface can provide an implementation for.
This property holds the implementation for getAvailableHandles.
- getHandle - function(IInputModeContext, HandlePositions):IHandle