public interface IPositionHandler extends IDragHandler
CanvasControl
.
The point as indicated by Location
describes the current world coordinate position of
the element. It is up to the implementation how this position is interpreted. The values returned by that instance will
be used for the "originalLocation" parameter in the
IDragHandler.handleMove(IInputModeContext, com.yworks.yfiles.geometry.PointD, com.yworks.yfiles.geometry.PointD)
,
IDragHandler.cancelDrag(IInputModeContext, com.yworks.yfiles.geometry.PointD)
and IDragHandler.dragFinished(IInputModeContext, com.yworks.yfiles.geometry.PointD, com.yworks.yfiles.geometry.PointD)
methods. Items can be dragged with the mouse and an instance of this class will modify their position accordingly.
Typically client code will use the Location
's coordinates to determine the current
position of the elements. A drag will trigger the invocation of IDragHandler.initializeDrag(IInputModeContext)
,
zero or more IDragHandler.handleMove(IInputModeContext, com.yworks.yfiles.geometry.PointD, com.yworks.yfiles.geometry.PointD)
calls, and finally by either IDragHandler.dragFinished(IInputModeContext, com.yworks.yfiles.geometry.PointD, com.yworks.yfiles.geometry.PointD)
or IDragHandler.cancelDrag(IInputModeContext, com.yworks.yfiles.geometry.PointD)
.
IDragHandler
,
IHandle
,
MoveInputMode
cancelDrag, dragFinished, getLocation, handleMove, initializeDrag