Interface for an object that can handle the position of an item displayed in a CanvasControlNamespace: yWorks.Canvas.Input
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 220.127.116.11
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 HandleMove(IInputModeContext, PointD, PointD), CancelDrag(IInputModeContext, PointD) and DragFinished(IInputModeContext, PointD, 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 InitializeDrag(IInputModeContext), zero or more HandleMove(IInputModeContext, PointD, PointD) calls, and finalized by either DragFinished(IInputModeContext, PointD, PointD) or CancelDrag(IInputModeContext, PointD).