org.graffiti.plugin.view.interactive
Class MouseMoveGesture

java.lang.Object
  extended by org.graffiti.plugin.view.interactive.ModifiableUserGesture
      extended by org.graffiti.plugin.view.interactive.MouseGesture
          extended by org.graffiti.plugin.view.interactive.MouseMoveGesture
All Implemented Interfaces:
UserGesture

public class MouseMoveGesture
extends MouseGesture

User gesture that represents moving the mouse while none of the mouse buttons is being pressed. It is provided for convenience and its use by InteractiveViews is not prescribed.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
UserGesture

Constructor Summary
MouseMoveGesture(Point2D position, Point2D delta, int modifierMask)
          Constructs a MouseMoveGesture.
 
Method Summary
 Point2D getDelta()
          Returns the change in position of the mouse cursor.
 
Methods inherited from class org.graffiti.plugin.view.interactive.MouseGesture
getPosition
 
Methods inherited from class org.graffiti.plugin.view.interactive.ModifiableUserGesture
isAltDown, isControlDown, isLeftMouseButtonDown, isMetaDown, isMiddleMouseButtonDown, isRightMouseButtonDown, isShiftDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseMoveGesture

public MouseMoveGesture(Point2D position,
                        Point2D delta,
                        int modifierMask)
Constructs a MouseMoveGesture.

Parameters:
position - the position of the mouse cursor. The referred coordinate system is left to the calling InteractiveView.
delta - the change in position of the mouse cursor. The referred coordinate system is left to the calling InteractiveView.
modifierMask - a bit set representing the state of the modifiers. It is interpreted like the extended modifier mask of InputEvent.
Method Detail

getDelta

public Point2D getDelta()
Returns the change in position of the mouse cursor.

Returns:
the change in position of the mouse cursor. The referred coordinate system is left to the calling InteractiveView.


Generated at 2012-05-30 11:00:36 PM CEST