| Package | com.yworks.canvas.input |
| Interface | public interface IHandle extends IDragHandler |
| Implementors | CompoundMovePortHandle, ConstrainedHandle, EdgeEndMoveHandle, PointHandle, PortLocationModelParameterHandle, RectangleHandle, ReshapeHandlerHandle, ReshapeableHandle |
CanvasComponent
as a UI element for the user to modify the contents of the control.
Handles can be dragged with the mouse and will thereby modify their context.
Typically client code will use the center to render a visual handle
that can be dragged using the mouse. A drag will trigger the invocation of
initializeDrag, zero or more handleMove calls, and will be finalized
by either dragFinished or cancelDrag.
| Property | Defined By | ||
|---|---|---|---|
| cursor : Cursor [read-only]
Provides the cursor to display when the mouse hovers over or drags this
handle. | IHandle | ||
| type : uint [read-only]
Returns the type of the handle that can be used by the rendering engine
to render types differently. | IHandle | ||
![]() | x : Number [read-only]
Returns the x coordinate of the current position of the element. | IDragHandler | |
![]() | y : Number [read-only]
Returns the y coordinate of the current position of the element. | IDragHandler | |
| cursor | property |
cursor:Cursor [read-only] Provides the cursor to display when the mouse hovers over or drags this handle.
public function get cursor():Cursor| type | property |
type:uint [read-only] Returns the type of the handle that can be used by the rendering engine to render types differently.
public function get type():uint