|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectEvent
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.events.GestureEvent
Instances of this class are sent as a result of a touch-based gesture being generated by the user.
GestureListener,
Serialized Form| Field Summary | |
int |
detail
The gesture type. |
boolean |
doit
A flag indicating whether the operation should be allowed. |
double |
magnification
Scale factor to be applied. |
double |
rotation
Number of degrees rotated on the device since the gesture started. |
int |
stateMask
the state of the keyboard modifier keys and mouse masks at the time the event was generated. |
int |
x
Depending on the value of the detail field and the current platform, this field
can mean the x coordinate of the centroid of the touches that make up the gesture (Windows),
or the x coordinate of the screen location of the cursor at the time the gesture was performed
(Mac OS X). |
int |
xDirection
The meaning of this field depends on the value of the detail field. |
int |
y
Depending on the value of the detail field and the current platform, this field
can mean the y coordinate of the centroid of the touches that make up the gesture (Windows),
or the y component of the screen location of the cursor at the time the gesture was performed
(Mac OS X). |
int |
yDirection
The meaning of this field depends on the value of the detail field. |
| Fields inherited from class org.eclipse.swt.events.TypedEvent |
data, display, widget |
| Constructor Summary | |
GestureEvent(Event e)
Constructs a new instance of this class based on the information in the given untyped event. |
|
| Method Summary | |
java.lang.String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class org.eclipse.swt.events.TypedEvent |
allowProcessing, dispatchToObserver, executeNext, getListenerType, getSource, processEvent, processScheduledEvents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int stateMask
SWT.MODIFIER_MASK,
SWT.BUTTON_MASKpublic int detail
SWT.GESTURE_BEGINSWT.GESTURE_ENDSWT.GESTURE_MAGNIFYSWT.GESTURE_PANSWT.GESTURE_ROTATESWT.GESTURE_SWIPEdetail field determines which fields of the
GestureEvent contain valid data.
public int x
detail field and the current platform, this field
can mean the x coordinate of the centroid of the touches that make up the gesture (Windows),
or the x coordinate of the screen location of the cursor at the time the gesture was performed
(Mac OS X).
public int y
detail field and the current platform, this field
can mean the y coordinate of the centroid of the touches that make up the gesture (Windows),
or the y component of the screen location of the cursor at the time the gesture was performed
(Mac OS X).
public double rotation
detail field is set to GESTURE_ROTATE.
public int xDirection
detail field.
If detail is GESTURE_SWIPE
and non-zero, a positive value indicates a swipe to the right, and a negative value indicates a
swipe to the left.
If detail is GESTURE_PAN a positive value indicates a pan to the
right of that many pixels, and a negative value indicates a pan to the left of that many
pixels.
This field is valid when the detail field is set to GESTURE_SWIPE or
GESTURE_PAN. Both the xDirection and yDirection can be
valid for an individual gesture.
public int yDirection
detail field.
If detail is GESTURE_SWIPE
and non-zero, a positive value indicates a swipe down, and a negative value indicates a swipe
up.
If detail is GESTURE_PAN a positive value indicates a pan downwards
of that many pixels, and a negative value indicates a pan upwards of that many pixels.
This field is valid when the detail field is set to GESTURE_SWIPE or
GESTURE_PAN. Both the xDirection and yDirection can be
valid for an individual gesture.
public double magnification
GESTURE_MAGNIFY received for a
magnification this value will be 1.0 and will then fluctuate as the user moves their fingers.
This field is valid when the detail field is set to GESTURE_MAGNIFY.
public boolean doit
false will cancel the operation.
| Constructor Detail |
public GestureEvent(Event e)
e - the untyped event containing the information| Method Detail |
public java.lang.String toString()
toString in class TypedEvent
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2011. All rights reserved.