ScreenTapGestureΒΆ

The ScreenTapGesture class represents a tapping gesture by a finger or tool. More...

Inherits Gesture.

Public Member Functions

Vector direction ()
 The direction of finger tip motion. More...
 
Pointable pointable ()
 The finger performing the screen tap gesture. More...
 
Vector position ()
 The position where the screen tap is registered. More...
 
float progress ()
 The progress value is always 1.0 for a screen tap gesture. More...
 
 ScreenTapGesture ()
 Constructs a new ScreenTapGesture object. More...
 
 ScreenTapGesture (Gesture rhs)
 Constructs a ScreenTapGesture object from an instance of the Gesture class. More...
 
- Public Member Functions inherited from Gesture
long duration ()
 The elapsed duration of the recognized movement up to the frame containing this Gesture object, in microseconds. More...
 
float durationSeconds ()
 The elapsed duration in seconds. More...
 
boolean equals (Gesture rhs)
 Compare Gesture object equality. More...
 
Frame frame ()
 The Frame containing this Gesture instance. More...
 
 Gesture ()
 Constructs a new Gesture object. More...
 
 Gesture (Gesture rhs)
 Constructs a new copy of an Gesture object. More...
 
HandList hands ()
 The list of hands associated with this Gesture, if any. More...
 
int id ()
 The gesture ID. More...
 
boolean isValid ()
 Reports whether this Gesture instance represents a valid Gesture. More...
 
PointableList pointables ()
 The list of fingers and tools associated with this Gesture, if any. More...
 
Gesture.State state ()
 The gesture state. More...
 
String toString ()
 A string containing a brief, human-readable description of this Gesture. More...
 
Gesture.Type type ()
 The gesture type. More...
 

Static Public Member Functions

static Gesture.Type classType ()
 The screen tap gesture type. More...
 
- Static Public Member Functions inherited from Gesture
static Gesture invalid ()
 Returns an invalid Gesture object. More...
 

Detailed Description

The ScreenTapGesture class represents a tapping gesture by a finger or tool.

Leap_Gesture_Tap2.png
Deprecated:
3.0

Constructor & Destructor Documentation

Constructs a new ScreenTapGesture object.

An uninitialized ScreenTapGesture object is considered invalid. Get valid instances of the ScreenTapGesture class from a Frame object.

Deprecated:
3.0

Constructs a ScreenTapGesture object from an instance of the Gesture class.

if(gesture.type() == Gesture.Type.TYPE_SCREEN_TAP) {
ScreenTapGesture screentapGesture = new ScreenTapGesture(gesture);
}
Parameters
rhsThe Gesture instance to specialize. This Gesture instance must be a ScreenTapGesture object.
Deprecated:
3.0

Member Function Documentation

static Gesture.Type classType ( )
static

The screen tap gesture type.

if(gesture.type() == ScreenTapGesture.classType()) {
ScreenTapGesture screentapGesture = new ScreenTapGesture(gesture);
}
Returns
Type The type value designating a screen tap gesture.
Deprecated:
3.0
Vector direction ( )

The direction of finger tip motion.

Vector pokeDirection = screentap.direction();
Returns
Vector A unit direction vector.
Deprecated:
3.0
Pointable pointable ( )

The finger performing the screen tap gesture.

Pointable poker = screentap.pointable();
Returns
Pointable A Pointable object representing the tapping finger.
Deprecated:
3.0
Vector position ( )

The position where the screen tap is registered.

Vector pokeLocation = screentap.position();
Returns
Vector A Vector containing the coordinates of screen tap location.
Deprecated:
3.0
float progress ( )

The progress value is always 1.0 for a screen tap gesture.

Returns
float The value 1.0.
Deprecated:
3.0