Class Overview
GestureLibrary maintains gesture examples and makes predictions on a new
gesture
Summary
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Constants
public
static
final
int
ORIENTATION_INVARIANT
Constant Value:
1
(0x00000001)
public
static
final
int
ORIENTATION_SENSITIVE
Constant Value:
2
(0x00000002)
public
static
final
int
SEQUENCE_INVARIANT
Constant Value:
1
(0x00000001)
public
static
final
int
SEQUENCE_SENSITIVE
Constant Value:
2
(0x00000002)
Public Constructors
Public Methods
public
void
addGesture
(String entryName, Gesture gesture)
Add a gesture for the entry
public
Set<String>
getGestureEntries
()
Get all the gesture entry names in the library
Get all the gestures of an entry
Returns
- the list of gestures that is under this name
public
int
getOrientationStyle
()
public
int
getSequenceType
()
Returns
- SEQUENCE_INVARIANT or SEQUENCE_SENSITIVE
public
boolean
hasChanged
()
public
void
load
(InputStream stream, boolean closeStream)
Returns
- a list of predictions of possible entries for a given gesture
public
void
removeEntry
(String entryName)
Remove a entry of gestures
public
void
removeGesture
(String entryName, Gesture gesture)
Remove a gesture from the library. If there are no more gestures for the
given entry, the gesture entry will be removed.
public
void
setOrientationStyle
(int style)
Specify how the gesture library will handle orientation.
Use ORIENTATION_INVARIANT or ORIENTATION_SENSITIVE
public
void
setSequenceType
(int type)
Parameters
type
| SEQUENCE_INVARIANT or SEQUENCE_SENSITIVE
|