|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.behavior.Member.Group<Pad,Pad.PadGroup> sky.monome.behavior.Pad.PadGroup
public static class Pad.PadGroup
Group of pads which is responsible for the synchronization between all associated pads.
Nested Class Summary | |
---|---|
protected class |
Pad.PadGroup.Lure
Virtual led/button couple internally associated with the common behavior of the pad group. |
Field Summary | |
---|---|
protected Behavior |
behavior
Common behavior of this group. |
protected Pad.PadGroup.Lure |
lure
Virtual led/button couple that is registered to the common behavior of this group. |
Fields inherited from class sky.monome.behavior.Member.Group |
---|
eventListenerList, members |
Constructor Summary | |
---|---|
Pad.PadGroup()
Constructs a pad group. |
|
Pad.PadGroup(Behavior behavior)
Constructs a pad group with the specified behavior. |
|
Pad.PadGroup(BehaviorFactory behaviorFactory)
Constructs a pad group with the specified behavior factory. |
Method Summary | |
---|---|
protected void |
addMember(Pad member)
Adds the specified member behavior to the list of associated member behaviors. |
protected Behavior |
getBehavior()
Returns the common behavior that is internally used for the synchronization of all associated pads. |
protected void |
notify(Pad member,
ButtonEvent.ButtonAction buttonAction)
Notifies that the specified pad behavior is itself notified (the led/button couple had notified its pad behavior). |
protected void |
setLedStates(LedButtonCouple.LedState ledState)
Sets the led states of all associated pads. |
Methods inherited from class sky.monome.behavior.Member.Group |
---|
addButtonListener, fireButtonActionned, getButtonListeners, getMembersNumber, removeButtonListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Behavior behavior
protected final Pad.PadGroup.Lure lure
Constructor Detail |
---|
public Pad.PadGroup() throws MonomeException
LightOnPush
common behavior is internally used.
MonomeException
- When a led state can't be initialized.public Pad.PadGroup(BehaviorFactory behaviorFactory) throws MonomeException
behaviorFactory
- Behavior factory that will create a common behavior for internal use.
MonomeException
- When a led state can't be initialized, or when the behavior factory
can't build a behavior for this pad group.public Pad.PadGroup(Behavior behavior) throws MonomeException
behavior
- Common behavior for internal use.
MonomeException
- When a led state can't be initialized.Method Detail |
---|
protected Behavior getBehavior()
protected void setLedStates(LedButtonCouple.LedState ledState) throws MonomeException
ledState
- New led state to give to all associated pads.
MonomeException
- When a led state can't be modified, or when the Monome device can't be refreshed.protected void addMember(Pad member)
addMember
in class Member.Group<Pad,Pad.PadGroup>
member
- Member behavior to add to the list of associated member behaviors.protected void notify(Pad member, ButtonEvent.ButtonAction buttonAction) throws MonomeException
notify
in class Member.Group<Pad,Pad.PadGroup>
member
- Pad behavior that notifies this pad group.buttonAction
- Button action associated to this notification.
MonomeException
- When a led state can't be modified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |