Interface for an object that can handle the position of an item
displayed in a CanvasControl
Namespace: yWorks.Canvas.InputAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public interface IPositionHandler : IDragHandler |
| Visual Basic |
|---|
Public Interface IPositionHandler _ Inherits IDragHandler |
Remarks
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).