touchscreen
Class Touches

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by touchscreen.Touches
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class Touches
extends java.util.ArrayList

Touches (extends ArrayList) is a list of Touches. Use it just like you would ArrayList

Author:
Kevin Cox, http://www.jibberia.com/
See Also:
Serialized Form

Constructor Summary
Touches()
           
Touches(java.util.ArrayList touches)
           
 
Method Summary
 boolean add(Touch t)
           
 int getUniqueID()
           
 void sendUpdatedTouches(java.util.ArrayList updatedTouches)
          main thing to call from the TouchListener
 java.lang.String toString()
           
 void update()
          Call this method when you have gotten the touch data into your application, and want to allow Touches to be updated.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Touches

public Touches()

Touches

public Touches(java.util.ArrayList touches)
Method Detail

update

public void update()
Call this method when you have gotten the touch data into your application, and want to allow Touches to be updated. (this is done to make sure you know when a Touch has gone up - so it doesn't happen without you knowing.)


sendUpdatedTouches

public void sendUpdatedTouches(java.util.ArrayList updatedTouches)
main thing to call from the TouchListener


getUniqueID

public int getUniqueID()

add

public boolean add(Touch t)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection