org.graffiti.plugin.view.interactive
Class MouseGesture

java.lang.Object
  extended by org.graffiti.plugin.view.interactive.ModifiableUserGesture
      extended by org.graffiti.plugin.view.interactive.MouseGesture
All Implemented Interfaces:
UserGesture
Direct Known Subclasses:
MouseButtonGesture, MouseMoveGesture

public class MouseGesture
extends ModifiableUserGesture

User gesture involving the mouse. It is provided for convenience and its use by InteractiveViews is not prescribed.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner

Constructor Summary
protected MouseGesture(Point2D position, int modifierMask)
          Constructs a MouseGesture.
 
Method Summary
 Point2D getPosition()
          Returns the position of the mouse cursor.
 
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

MouseGesture

protected MouseGesture(Point2D position,
                       int modifierMask)
Constructs a MouseGesture.

Parameters:
position - the 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

getPosition

public Point2D getPosition()
Returns the position of the mouse cursor.

Returns:
the 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