Package | com.yworks.canvas.input |
Class | public class ConstrainedHandle |
Inheritance | ConstrainedHandle ConstrainedDragHandler Object |
Implements | IHandle |
IHandle
interface that can be used to constrain
the handle of an item.
See also
Property | Defined By | ||
---|---|---|---|
cursor : Cursor [read-only]
Delegates to the delegateHandler's IHandle.cursor property. | ConstrainedHandle | ||
delegateHandler : IDragHandler [read-only]
Gets the delegate handler to which calls will be ultimately delegated. | ConstrainedDragHandler | ||
type : uint [read-only]
Delegates to the delegateHandler's IHandle.type property. | ConstrainedHandle | ||
x : Number [read-only]
Delegates to the delegateHandler's IDragHandler.x property. | ConstrainedDragHandler | ||
y : Number [read-only]
Delegates to the delegateHandler's IDragHandler.y property. | ConstrainedDragHandler |
Method | Defined By | ||
---|---|---|---|
ConstrainedHandle(wrappedHandler:IHandle)
Initializes a new instance of the ConstrainedHandle class that delegates to the
wrappedHandler. | ConstrainedHandle | ||
cancelDrag(context:IInputModeContext, originalX:Number, originalY:Number):void
Cancels the move operation and calls onCanceled. | ConstrainedDragHandler | ||
dragFinished(context:IInputModeContext, originalX:Number, originalY:Number, newX:Number, newY:Number):void
Handles the finish operation and invokes onFinished. | ConstrainedDragHandler | ||
handleMove(context:IInputModeContext, originalX:Number, originalY:Number, newX:Number, newY:Number):Boolean
Handles the move operation and subsequently calls onMoved. | ConstrainedDragHandler | ||
initializeDrag(context:IInputModeContext):void
Initializes the drag operation and subsequently calls onInitialized. | ConstrainedDragHandler |
cursor | property |
cursor:Cursor
[read-only]
Delegates to the delegateHandler
's IHandle.cursor
property.
public function get cursor():Cursor
See also
type | property |
type:uint
[read-only]
Delegates to the delegateHandler
's IHandle.type
property.
public function get type():uint
See also
ConstrainedHandle | () | Constructor |
public function ConstrainedHandle(wrappedHandler:IHandle)
Initializes a new instance of the ConstrainedHandle
class that delegates to the
wrappedHandler
.
wrappedHandler:IHandle — The handle to delegate to.
|