GestureListΒΆ

GestureList Class Reference

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

Inherits Interface, and Iterable< Gesture >.

Public Member Functions

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

Detailed Description

The GestureList class represents a list of Gesture objects.

Get a GestureList object from a Frame object.

Since
1.0

Constructor & Destructor Documentation

Constructs an empty gesture list.

Since
1.0

Member Function Documentation

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.
Since
1.0
int count ( )

The length of this list.

if (frame.gestures().count() > 0) {
//Process gestures...
}
Returns
The number of gestures in this list.
Since
1.0
Gesture get ( int  index)

Access a list member by its position in the list.

GestureList allGesturesSince = frame.gestures(startFrame);
for (int index = 0; index < allGesturesSince.count(); index++) {
System.out.println(allGesturesSince.get(index));
}
Parameters
indexThe zero-based list position index.
Returns
The Gesture object at the specified index.
Since
1.0
boolean isEmpty ( )

Reports whether the list is empty.

if (!frame.gestures().isEmpty()) {
//Handle this frame's gesture objects
}
Returns
True, if the list has no members.
Since
1.0