|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.behavior.StaticBehavior sky.monome.behavior.Member<Pad.PadGroup> sky.monome.behavior.Pad
public class Pad
Pad behavior. A pad can be included in a pad group. With pads, you can build synchronized led/button couples. It is possible to specify the behavior that the group will adopt with the set of all associated pads.
Nested Class Summary | |
---|---|
static class |
Pad.PadGroup
Group of pads which is responsible for the synchronization between all associated pads. |
Nested classes/interfaces inherited from class sky.monome.behavior.Member |
---|
Member.Group<M extends Member<G>,G extends Member.Group<M,G>> |
Field Summary |
---|
Fields inherited from class sky.monome.behavior.Member |
---|
group |
Fields inherited from class sky.monome.behavior.StaticBehavior |
---|
ledButtonCouple |
Constructor Summary | |
---|---|
Pad(Pad.PadGroup padGroup)
Constructs a pad that is associated to the specified pad group. |
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.Member |
---|
getGroup |
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 |
Constructor Detail |
---|
public Pad(Pad.PadGroup padGroup)
padGroup
- Pad group that will be associated to this pad behavior.Method Detail |
---|
public void notify(ButtonEvent.ButtonAction buttonAction) throws MonomeException
buttonAction
- Button action that is performed.
MonomeException
- When a led state can't be modified.public void init() throws MonomeException
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 |