sky.monome.layer
Interface LedStateModificationLayer

All Known Implementing Classes:
DefaultLedStateModificationLayer, InvertedLedStateModificationLayer, MultiSequencerGroup.SpecificSequencerGroup, SequencerGroup, SequencerPageSwitcher.SequencerPage

public interface LedStateModificationLayer

Modification layer that can modify virtually the led state of a led or a whole group of leds. This kind of modification is useful to simulate by example a selection, or an active step while sequencing. Since SkyMonome v1.1, led/button couples are less restrictive to find their own modification layer :
- Firstly, they verify if they are themselves implementations of this interface (in case of you create a subclass of LedButtonCouple).
- Then, if not, they verify their Monome tree by going up in this tree. The first found container that implements this interface is choosen.
- Finally, if no one is an implementation of this interface, so a DefaultLedStateModificationLayer is used.

Author:
PJ Skyman

Method Summary
 LedButtonCouple.LedState getLedStateToShow(LedButtonCouple ledButtonCouple)
          Returns the led state to show instead of the natural led state of the specified led/button couple.
 

Method Detail

getLedStateToShow

LedButtonCouple.LedState getLedStateToShow(LedButtonCouple ledButtonCouple)
Returns the led state to show instead of the natural led state of the specified led/button couple.

Parameters:
ledButtonCouple - led/button couple which is the reference.
Returns:
The led state to show instead of the natural led state of the specified led/button couple.