Package | com.yworks.canvas.input |
Class | public class ReshapeableHandles |
Inheritance | ReshapeableHandles ReshapeHandleProvider Object |
IReshapeHandleProvider
that returns handles that modify an IMutableRectangle
.
Method | Defined By | ||
---|---|---|---|
Creates a default instance that provide handle for each of the positions
given for the rectangle and reshapeable instance. | ReshapeableHandles | ||
[static]
Creates a default instance that provides 8 handles for each corner and side for the given rectangle. | ReshapeableHandles | ||
getAvailableHandles():uint
Returns the handlePositions property. | ReshapeHandleProvider | ||
[override]
Provides an IHandle that uses the rectangle and reshapeable instance
bound to this instance to perform the actual reshaping. | ReshapeableHandles |
ReshapeableHandles | () | Constructor |
public function ReshapeableHandles(rectangle:IRectangle, reshapeable:IReshapeable, handlePositions:uint)
Creates a default instance that provide handle for each of the positions given for the rectangle and reshapeable instance.
Parametersrectangle:IRectangle — The rectangle to create handles for.
| |
reshapeable:IReshapeable — The reshapeable instance to use for the actual reshaping.
| |
handlePositions:uint — A bitwise combination of all handle positions this instance should provide a handle for.
|
createReshapeableHandles | () | method |
public static function createReshapeableHandles(rectangle:IMutableRectangle):ReshapeableHandles
Creates a default instance that provides 8 handles for each corner and side for the given rectangle.
Parameters
rectangle:IMutableRectangle — The rectangle to provide handles for.
|
ReshapeableHandles — A default instance that provides 8 handles for each corner and side for the given rectangle.
|
getHandle | () | method |
override public function getHandle(position:uint):IHandle
Provides an IHandle
that uses the rectangle and reshapeable instance
bound to this instance to perform the actual reshaping.
Parameters
position:uint — The position to provide an instance for.
|
IHandle — A handle implementation.
|