Methods:
The GestureList class represents a list of Gesture objects.
Get a GestureList object from a Frame object.
Public Functions
- Since
- 1.0
GestureList append(GestureList other)Appends the members of the specified GestureList to this GestureList.
- Since
- 1.0
- Parameters
- other -
A GestureList object containing Gesture objects to append to the end of this GestureList.
int count()The length of this list.
if (frame.gestures().count() > 0) { //Process gestures... }
- Return
- The number of gestures in this list.
- Since
- 1.0
GestureList()Constructs an empty gesture 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)); }
- Return
- The Gesture object at the specified index.
- Since
- 1.0
- Parameters
- index -
The zero-based list position index.
boolean isEmpty()Reports whether the list is empty.
if (!frame.gestures().isEmpty()) { //Handle this frame's gesture objects }
- Return
- True, if the list has no members.
- Since
- 1.0
class GestureListIterator