Leap Motion Java API Reference  0.8.0
com.leapmotion.leap.GestureList Class Reference

The GestureList class represents a list of Gesture objects. More...

Inherits com.leapmotion.leap.Interface, and Iterable< Gesture >.

Public Member Functions

GestureList append (GestureList other)
 Appends the members of the specified GestureList to this GestureList.
 
int count ()
 The length of this list.
 
boolean empty ()
 Deprecated.
 
 GestureList ()
 Constructs an empty gesture list.
 
Gesture get (int index)
 Access a list member by its position in the list.
 
boolean isEmpty ()
 Reports whether the list is empty.
 

Detailed Description

The GestureList class represents a list of Gesture objects.

Get a GestureList object from a Frame object.

Constructor & Destructor Documentation

com.leapmotion.leap.GestureList.GestureList ( )

Constructs an empty gesture list.

Member Function Documentation

GestureList com.leapmotion.leap.GestureList.append ( GestureList  other)

Appends the members of the specified GestureList to this GestureList.

Parameters
otherA GestureList object containing Gesture objects to append to the end of this GestureList.
int com.leapmotion.leap.GestureList.count ( )

The length of this list.

Returns
The number of gestures in this list.
boolean com.leapmotion.leap.GestureList.empty ( )

Deprecated.

Use GestureList::isEmpty() instead.

See Also
GestureList::isEmpty()
Gesture com.leapmotion.leap.GestureList.get ( int  index)

Access a list member by its position in the list.

Parameters
indexThe zero-based list position index.
Returns
The Gesture object at the specified index.
boolean com.leapmotion.leap.GestureList.isEmpty ( )

Reports whether the list is empty.

Returns
True, if the list has no members.