|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.behavior.DynamicBehavior sky.monome.behavior.BlinkingLightOnPush
public class BlinkingLightOnPush
Behavior for blinking light when the button is pushed. The blinking cadency is independent of any other blinking light behavior, so it should be unsynchronized. The blinking effect is permanent.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class sky.monome.behavior.DynamicBehavior |
---|
DynamicBehavior.DynamicBehaviorType |
Field Summary | |
---|---|
protected long |
delay
Delay for one blinking cycle. |
Fields inherited from class sky.monome.behavior.DynamicBehavior |
---|
dynamicBehaviorType, ledButtonCouple, thread |
Constructor Summary | |
---|---|
BlinkingLightOnPush(long delay)
Constructs a blinking light on push behavior with te specified delay. |
|
BlinkingLightOnPush(java.lang.Long delay)
Constructs a blinking light on push behavior with te specified delay. |
Method Summary | |
---|---|
void |
action()
Invoked when the behavior must execute its perpetual or one-time action. |
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.DynamicBehavior |
---|
getLedButtonCouple, setLedButtonCouple, startThread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final long delay
Constructor Detail |
---|
public BlinkingLightOnPush(long delay)
delay
- Delay for one blinking cycle, in milliseconds.public BlinkingLightOnPush(java.lang.Long delay)
delay
- Delay for one blinking cycle, in milliseconds.Method Detail |
---|
public void action() throws java.lang.InterruptedException, MonomeException
action
in class DynamicBehavior
java.lang.InterruptedException
- When the virtual machine stops while a sleep operation.
MonomeException
- When the led state of the registered led can't be modified.public void notify(ButtonEvent.ButtonAction buttonAction) throws MonomeException
buttonAction
- Button action that is performed.
MonomeException
- Only with a few behaviors, when a led state can't be modified, by example.public void init()
MonomeException
- When the initialization of this behavior and the registered led/button couple was not possible.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |