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

The FingerList class represents a list of Finger objects. More...

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

Public Member Functions

FingerList append (FingerList other)
 Appends the members of the specifed FingerList to this FingerList.
 
int count ()
 Returns the number of fingers in this list.
 
boolean empty ()
 Deprecated.
 
 FingerList ()
 Constructs an empty list of fingers.
 
Finger frontmost ()
 The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate).
 
Finger get (int index)
 Access a list member by its position in the list.
 
boolean isEmpty ()
 Reports whether the list is empty.
 
Finger leftmost ()
 The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate).
 
Finger rightmost ()
 The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate).
 

Detailed Description

The FingerList class represents a list of Finger objects.

Get a FingerList object by calling Frame::fingers().

Constructor & Destructor Documentation

com.leapmotion.leap.FingerList.FingerList ( )

Constructs an empty list of fingers.

Member Function Documentation

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

Appends the members of the specifed FingerList to this FingerList.

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

Returns the number of fingers in this list.

Returns
The number of fingers in this list.
boolean com.leapmotion.leap.FingerList.empty ( )

Deprecated.

Use FingerList::isEmpty() instead.

See Also
FingerList::isEmpty()
Finger com.leapmotion.leap.FingerList.frontmost ( )

The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate).

Returns
The frontmost finger, or invalid if list is empty.
Finger com.leapmotion.leap.FingerList.get ( int  index)

Access a list member by its position in the list.

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

Reports whether the list is empty.

Returns
True, if the list has no members.
Finger com.leapmotion.leap.FingerList.leftmost ( )

The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate).

Returns
The leftmost finger, or invalid if list is empty.
Finger com.leapmotion.leap.FingerList.rightmost ( )

The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate).

Returns
The rightmost finger, or invalid if list is empty.