|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.Component sky.monome.Container sky.monome.AbstractGroup<LedButtonCouple> sky.monome.SequencerPageSwitcher.SequencerPage
public class SequencerPageSwitcher.SequencerPage
Page of sequencer. This class is a special implementation of the
SequencerComponent
interface based on the
AbstractGroup
<LedButtonCouple
> class.
Field Summary | |
---|---|
protected SynchronizedList<SequencerRadio.SequencerRadioGroup> |
buttonManagers
List of button managers that manage each step of the enclosing sequencer. |
Fields inherited from class sky.monome.AbstractGroup |
---|
components |
Fields inherited from class sky.monome.Container |
---|
height, width |
Fields inherited from class sky.monome.Component |
---|
container, eventListenerList, lockObject, name, x, y |
Constructor Summary | |
---|---|
protected |
SequencerPageSwitcher.SequencerPage(java.lang.String name)
Constructs a sequencer page with the specified name. |
Method Summary | ||
---|---|---|
protected void |
addLedButtonCouple(LedButtonCouple ledButtonCouple)
Adds the specified led/button couple to the list of led/button couples. |
|
void |
addSequencerListener(SequencerListener<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup> sequencerListener)
Adds the specified sequencer listener to the list of sequencer listeners. |
|
boolean |
canHaveParentContainer()
Indicates whether this sequencer page can have a parent container in the Monome assembling tree. |
|
void |
fireStepChanged(SequencerPageSwitcher.SequencerPage sequencerPage,
int activeStepNumber)
Invoked when a step change occurs. |
|
int |
getAbsoluteX()
Returns the absolute X-coordinate of this sequencer page. |
|
int |
getAbsoluteY()
Returns the absolute Y-coordinate of this sequencer page. |
|
java.awt.Rectangle |
getBounds()
Returns the bounds of this sequencer page in the local context of its container. |
|
|
getButtonManager(java.lang.Class<T> clazz,
int number)
Deprecated. Since this class implements an interface that is parametrized, it is recommended to use getButtonManager(int) instead. |
|
SequencerRadio.SequencerRadioGroup |
getButtonManager(int number)
Returns the button manager of this sequencer component at the specified step number. |
|
SequencerRadio.SequencerRadioGroup[] |
getButtonManagers()
Returns an array of all button managers of this sequencer component. |
|
|
getButtonManagers(java.lang.Class<T> clazz)
Deprecated. Since this class implements an interface that is parametrized, it is recommended to use getButtonManagers() instead. |
|
LedButtonCouple.LedState |
getLedStateToShow(LedButtonCouple ledButtonCouple)
Returns the led state to show instead of the natural led state of the specified led/button couple. |
|
Monome |
getMonome()
Returns the logical Monome device that contains this sequencer page. |
|
SequencerListener<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>[] |
getSequencerListeners()
Returns an array of all sequencer listeners. |
|
boolean |
isVisible()
Indicates whether this sequencer page is actually visible. |
|
void |
removeSequencerListener(SequencerListener<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup> sequencerListener)
Removes the specified sequencer listener from the list of sequencer listeners. |
|
java.lang.String |
toString()
Returns a string representation of this sequencer page. |
Methods inherited from class sky.monome.AbstractGroup |
---|
notify, writeOn |
Methods inherited from class sky.monome.Container |
---|
getHeight, getWidth |
Methods inherited from class sky.monome.Component |
---|
getContainer, getLockObject, getName, getX, getY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SynchronizedList<SequencerRadio.SequencerRadioGroup> buttonManagers
Constructor Detail |
---|
protected SequencerPageSwitcher.SequencerPage(java.lang.String name) throws MonomeException
name
- Name of this sequencer page.
MonomeException
- When a led state can't be initialized.Method Detail |
---|
protected void addLedButtonCouple(LedButtonCouple ledButtonCouple) throws MonomeException
ledButtonCouple
- Led/button couple to add to the list of led/button couples.
MonomeException
- When a led/button couple has bounds already used by another led/button couple.public Monome getMonome()
getMonome
in class AbstractGroup<LedButtonCouple>
public int getAbsoluteX()
getAbsoluteX
in class AbstractGroup<LedButtonCouple>
public int getAbsoluteY()
getAbsoluteY
in class AbstractGroup<LedButtonCouple>
public boolean isVisible()
isVisible
in class AbstractGroup<LedButtonCouple>
true
if this sequencer page is actually visible, false
otherwise.public boolean canHaveParentContainer()
canHaveParentContainer
in class AbstractGroup<LedButtonCouple>
false
, since pages are contained only by page switchers.public java.lang.String toString()
toString
in class Component
public java.awt.Rectangle getBounds()
getBounds
in class AbstractGroup<LedButtonCouple>
public void addSequencerListener(SequencerListener<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup> sequencerListener)
addSequencerListener
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
sequencerListener
- Sequencer listener to add to the list of sequencer listeners.public void removeSequencerListener(SequencerListener<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup> sequencerListener)
removeSequencerListener
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
sequencerListener
- Sequencer listener to remove from the list of sequencer listeners.public SequencerListener<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>[] getSequencerListeners()
getSequencerListeners
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
public void fireStepChanged(SequencerPageSwitcher.SequencerPage sequencerPage, int activeStepNumber)
fireStepChanged
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
sequencerPage
- Sequencer page that triggered the sequencer event.@Deprecated public <T extends ButtonManager<?>> T[] getButtonManagers(java.lang.Class<T> clazz)
getButtonManagers()
instead.
getButtonManagers
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
T
- Desired type for button managers. It should be a subclass of ButtonManager
.clazz
- Class object that specify the return type for button managers.
java.lang.ClassCastException
- When button managers can't be typed to the specified type.public SequencerRadio.SequencerRadioGroup[] getButtonManagers()
getButtonManagers
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
@Deprecated public <T extends ButtonManager<?>> T getButtonManager(java.lang.Class<T> clazz, int number)
getButtonManager(int)
instead.
getButtonManager
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
T
- Desired type for the button manager. It should be a subclass of ButtonManager
.clazz
- Class object that specify the return type for the button manager.number
- Number of the button manager needed.
java.lang.ClassCastException
- When the button manager can't be typed to the specified type.public SequencerRadio.SequencerRadioGroup getButtonManager(int number)
getButtonManager
in interface SequencerComponent<SequencerPageSwitcher.SequencerPage,SequencerRadio.SequencerRadioGroup>
number
- Number of the button manager needed.
public LedButtonCouple.LedState getLedStateToShow(LedButtonCouple ledButtonCouple)
getLedStateToShow
in interface LedStateModificationLayer
ledButtonCouple
- led/button couple which is the reference.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |