org.graffiti.plugin.view.interactive
Class MouseDragGesture

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.MouseButtonGesture
              extended by org.graffiti.plugin.view.interactive.MouseDragGesture
All Implemented Interfaces:
UserGesture

public class MouseDragGesture
extends MouseButtonGesture

User gesture that represents dragging the mouse, e.g. moving the mouse while one of its 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
MouseDragGesture(Point2D position, Point2D delta, int modifierMask, int buttonId)
          Constructs a MouseDragGesture.
 
Method Summary
 Point2D getDelta()
          Returns the change in position of the mouse cursor.
 
Methods inherited from class org.graffiti.plugin.view.interactive.MouseButtonGesture
getButton
 
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

MouseDragGesture

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

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.
buttonId - the id of the button that was in pressed state during this mouse drag, as used by MouseEvent.getButton().
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