org.graffiti.plugin.view.interactive
Class MousePressGesture

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.MousePressGesture
All Implemented Interfaces:
UserGesture

public class MousePressGesture
extends MouseButtonGesture

User gesture that represents pressing a mouse button. 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
MousePressGesture(Point2D position, int modifierMask, int buttonId)
          Constructs a MousePressGesture.
MousePressGesture(Point2D position, int modifierMask, MouseButton button)
          Constructs a MousePressGesture.
 
Method Summary
 
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

MousePressGesture

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

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

MousePressGesture

public MousePressGesture(Point2D position,
                         int modifierMask,
                         MouseButton button)
Constructs a MousePressGesture.

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.
button - the button that was pressed, as used by MouseEvent.getButton().


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