com.jogamp.newt.event
Class GestureHandler.GestureEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jogamp.newt.event.NEWTEvent
          extended by com.jogamp.newt.event.InputEvent
              extended by com.jogamp.newt.event.GestureHandler.GestureEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PinchToZoomGesture.ZoomEvent
Enclosing interface:
GestureHandler

public static class GestureHandler.GestureEvent
extends InputEvent

A custom gesture event

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jogamp.newt.event.InputEvent
InputEvent.InputClass, InputEvent.InputType
 
Field Summary
static short EVENT_GESTURE_DETECTED
          A gesture has been detected.
 
Fields inherited from class com.jogamp.newt.event.InputEvent
ALT_GRAPH_MASK, ALT_MASK, AUTOREPEAT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, BUTTON4_MASK, BUTTON5_MASK, BUTTON6_MASK, BUTTON7_MASK, BUTTON8_MASK, BUTTON9_MASK, BUTTONALL_MASK, BUTTONLAST_MASK, CONFINED_MASK, CTRL_MASK, INVISIBLE_MASK, META_MASK, SHIFT_MASK
 
Fields inherited from class com.jogamp.newt.event.NEWTEvent
consumedTag
 
Constructor Summary
GestureHandler.GestureEvent(Object source, long when, int modifiers, GestureHandler handler)
          Creates a gesture event with default type EVENT_GESTURE_DETECTED.
GestureHandler.GestureEvent(short event_type, Object source, long when, int modifiers, GestureHandler handler)
          Creates a gesture event with custom event_type !
 
Method Summary
 GestureHandler getHandler()
          Return the GestureHandler, which produced the event.
 
Methods inherited from class com.jogamp.newt.event.InputEvent
getButtonDownCount, getButtonMask, getButtonsDown, getModifiers, getModifiersString, isAltDown, isAltGraphDown, isAnyButtonDown, isAutoRepeat, isButtonDown, isConfined, isControlDown, isInvisible, isMetaDown, isShiftDown, toString, toString
 
Methods inherited from class com.jogamp.newt.event.NEWTEvent
getAttachment, getEventType, getWhen, isConsumed, setAttachment, setConsumed, toHexString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_GESTURE_DETECTED

public static final short EVENT_GESTURE_DETECTED
A gesture has been detected.

See Also:
Constant Field Values
Constructor Detail

GestureHandler.GestureEvent

public GestureHandler.GestureEvent(Object source,
                                   long when,
                                   int modifiers,
                                   GestureHandler handler)
Creates a gesture event with default type EVENT_GESTURE_DETECTED.

Parameters:
source -
when -
modifiers -
handler -

GestureHandler.GestureEvent

public GestureHandler.GestureEvent(short event_type,
                                   Object source,
                                   long when,
                                   int modifiers,
                                   GestureHandler handler)
Creates a gesture event with custom event_type !

Parameters:
event_type - must lie within [400..599]
source -
when -
modifiers -
handler -
Method Detail

getHandler

public final GestureHandler getHandler()
Return the GestureHandler, which produced the event.



Copyright 2010 JogAmp Community.