|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeviceListener
Interface for listening to a device. Since FROG is an event-driven program
there is an obvious need to be able to react as gestures come in from the
user.
It is also important for handling device operations such as abrupt
disconnects or other failures.
| Method Summary | |
|---|---|
void |
accelerationPerformed(AccelEvent e)
Run every time a single acceleration has come in. |
void |
gestureComplete(boolean good,
Device d)
Run when a single gesture has been completed. |
void |
unexpectedDisconnect(Device d)
For handling an unexpected disconnect from a device. |
| Method Detail |
|---|
void unexpectedDisconnect(Device d)
d - Device that was unexpectedly disconnectedvoid accelerationPerformed(AccelEvent e)
e - contains the acceleration data and the calling device
void gestureComplete(boolean good,
Device d)
good - true if this gesture is complete.
false if this gesture should be discarded.d - the device that completed the gesture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||