Packagecom.yworks.canvas.input
Classpublic class ReshapeableHandles
InheritanceReshapeableHandles Inheritance ReshapeHandleProvider Inheritance Object

A simple convenience implementation of an IReshapeHandleProvider that returns handles that modify an IMutableRectangle.



Public Properties
 PropertyDefined By
 InheritedhandlePositions : uint
Gets or sets the bitwise combination of all handle positions this instance provides a handle for.
ReshapeHandleProvider
 InheritedmaximumSize : ISize
Gets or sets the maximum size allowed for the reshapeable.
ReshapeHandleProvider
 InheritedminimumEnclosedArea : IRectangle
Gets or sets the minimum rectangular area that needs to be contained in the reshapeable.
ReshapeHandleProvider
 InheritedminimumSize : ISize
Gets or sets the minimum size allowed for the reshapeable.
ReshapeHandleProvider
Protected Properties
 PropertyDefined By
 Inherited_handlePositions : uint
ReshapeHandleProvider
 Inherited_maximumSize : ISize
ReshapeHandleProvider
 Inherited_minimumEnclosedArea : IRectangle
ReshapeHandleProvider
 Inherited_minimumSize : ISize
ReshapeHandleProvider
Public Methods
 MethodDefined By
  
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.
ReshapeableHandles
  
[static] Creates a default instance that provides 8 handles for each corner and side for the given rectangle.
ReshapeableHandles
 Inherited
Returns the handlePositions property.
ReshapeHandleProvider
  
getHandle(position:uint):IHandle
[override] Provides an IHandle that uses the rectangle and reshapeable instance bound to this instance to perform the actual reshaping.
ReshapeableHandles
Constructor Detail
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.

Parameters
rectangle: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.
Method Detail
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.

Returns
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.

Returns
IHandle — A handle implementation.