Packagecom.yworks.canvas.input
Classpublic class ReshapeHandleProvider
InheritanceReshapeHandleProvider Inheritance Object
Implements IReshapeHandleProvider
Subclasses ReshapeableHandles

Abstract base class implementation of the IReshapeHandleProvider interface that has properties to store the values provided by a corresponding ISizeConstraintProvider.

See also

ISizeConstraintProvider


Public Properties
 PropertyDefined By
  handlePositions : uint
Gets or sets the bitwise combination of all handle positions this instance provides a handle for.
ReshapeHandleProvider
  maximumSize : ISize
Gets or sets the maximum size allowed for the reshapeable.
ReshapeHandleProvider
  minimumEnclosedArea : IRectangle
Gets or sets the minimum rectangular area that needs to be contained in the reshapeable.
ReshapeHandleProvider
  minimumSize : ISize
Gets or sets the minimum size allowed for the reshapeable.
ReshapeHandleProvider
Protected Properties
 PropertyDefined By
  _handlePositions : uint
ReshapeHandleProvider
  _maximumSize : ISize
ReshapeHandleProvider
  _minimumEnclosedArea : IRectangle
ReshapeHandleProvider
  _minimumSize : ISize
ReshapeHandleProvider
Public Methods
 MethodDefined By
  
Returns the handlePositions property.
ReshapeHandleProvider
  
getHandle(position:uint):IHandle
Provides an IHandle that uses the rectangle and reshapeable instance bound to this instance to perform the actual reshaping.
ReshapeHandleProvider
Property Detail
_handlePositionsproperty
protected var _handlePositions:uint

_maximumSizeproperty 
protected var _maximumSize:ISize

_minimumEnclosedAreaproperty 
protected var _minimumEnclosedArea:IRectangle

_minimumSizeproperty 
protected var _minimumSize:ISize

handlePositionsproperty 
handlePositions:uint

Gets or sets the bitwise combination of all handle positions this instance provides a handle for.


Implementation
    public function get handlePositions():uint
    public function set handlePositions(value:uint):void
maximumSizeproperty 
maximumSize:ISize

Gets or sets the maximum size allowed for the reshapeable.

The default value is ImmutableSize.UNBOUND.


Implementation
    public function get maximumSize():ISize
    public function set maximumSize(value:ISize):void
minimumEnclosedAreaproperty 
minimumEnclosedArea:IRectangle

Gets or sets the minimum rectangular area that needs to be contained in the reshapeable.

The default value is ImmutableRectangle.EMPTY.


Implementation
    public function get minimumEnclosedArea():IRectangle
    public function set minimumEnclosedArea(value:IRectangle):void
minimumSizeproperty 
minimumSize:ISize

Gets or sets the minimum size allowed for the reshapeable.

The default value is ImmutableSize.EMPTY.


Implementation
    public function get minimumSize():ISize
    public function set minimumSize(value:ISize):void
Method Detail
getAvailableHandles()method
public function getAvailableHandles():uint

Returns the handlePositions property.

Returns
uint — A bit wise combination of all handle positions this instance provides a handle for if queried in ReshapeableHandles.getHandle.

See also

handlePositions
ReshapeableHandles.getHandle
getHandle()method 
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. This method may be called for each possible single position contained in the set as returned by getAvailableHandles. This function is meant to be abstract and has to be overridden by subclasses

Parameters

position:uint — The position to provide an instance for.

Returns
IHandle — A handle implementation.

See also