|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsky.monome.behavior.StaticBehavior
sky.monome.behavior.LightOnPush
public class LightOnPush
Behavior that changes the led state accordingly to the button state, in a monostable manner.
| Nested Class Summary | |
|---|---|
static class |
LightOnPush.LightOnPushType
Type of behavior. |
| Field Summary | |
|---|---|
protected LightOnPush.LightOnPushType |
pushAndLightType
Type of behavior. |
| Fields inherited from class sky.monome.behavior.StaticBehavior |
|---|
ledButtonCouple |
| Constructor Summary | |
|---|---|
LightOnPush()
Constructs a "light on push" behavior with the default type LightOnPushType.PUSH_TO_LIGHT_ON. |
|
LightOnPush(LightOnPush.LightOnPushType pushAndLightType)
Constructs a "light on push" behavior with the specified type. |
|
| Method Summary | |
|---|---|
void |
init()
Initializes this behavior and the registered led/button couple. |
void |
notify(ButtonEvent.ButtonAction buttonAction)
Notifies this behavior that an action on the button is performed. |
| Methods inherited from class sky.monome.behavior.StaticBehavior |
|---|
getLedButtonCouple, setLedButtonCouple |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final LightOnPush.LightOnPushType pushAndLightType
| Constructor Detail |
|---|
public LightOnPush()
LightOnPushType.PUSH_TO_LIGHT_ON.
public LightOnPush(LightOnPush.LightOnPushType pushAndLightType)
pushAndLightType - Type of behavior to adopt.| Method Detail |
|---|
public void notify(ButtonEvent.ButtonAction buttonAction)
throws MonomeException
buttonAction - Button action that is performed.
MonomeException - When the led state can't be modified.public void init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||