|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwiiremotej.event.BalanceBoardAdapter
public abstract class BalanceBoardAdapter
Implementation of BalanceBoardListener to conveniently implement just the methods you want. Contains all blank methods so you can just override what you need. Note that any time-intensive tasks should be executed in their own threads, as otherwise, they will block the event-dispatch thread.
| Constructor Summary | |
|---|---|
BalanceBoardAdapter()
|
|
| Method Summary | |
|---|---|
void |
buttonInputReceived(BBButtonEvent evt)
Fires whenever data is received from the button. |
void |
combinedInputReceived(BBCombinedEvent evt)
Fires whenever input is received on the regular input reports (0x30...0x3f). |
void |
disconnected()
Fires when the BalanceBoard disconnects. |
void |
massInputReceived(BBMassEvent evt)
Fires whenever data is received from the mass sensors. |
void |
statusReported(BBStatusEvent evt)
Fires whenever status data is received. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BalanceBoardAdapter()
| Method Detail |
|---|
public void buttonInputReceived(BBButtonEvent evt)
BalanceBoardListener
buttonInputReceived in interface BalanceBoardListenerevt - the BBButtonEvent containing information on the button.BalanceBoardListener.combinedInputReceived(BBCombinedEvent)public void statusReported(BBStatusEvent evt)
BalanceBoardListener
statusReported in interface BalanceBoardListenerevt - the BBStatusEvent containing status information.public void massInputReceived(BBMassEvent evt)
BalanceBoardListener
massInputReceived in interface BalanceBoardListenerevt - the BBMassEvent containing mass information.BalanceBoardListener.combinedInputReceived(BBCombinedEvent)public void combinedInputReceived(BBCombinedEvent evt)
BalanceBoardListener
combinedInputReceived in interface BalanceBoardListenerevt - a combined event, containing button press and mass events.BalanceBoardListener.buttonInputReceived(BBButtonEvent),
BalanceBoardListener.massInputReceived(BBMassEvent)public void disconnected()
BalanceBoardListener
disconnected in interface BalanceBoardListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||