sky.monome.layer
Class DefaultLedStateModificationLayer


java.lang.Object

  extended by sky.monome.layer.DefaultLedStateModificationLayer

All Implemented Interfaces:
LedStateModificationLayer

public class DefaultLedStateModificationLayer
extends java.lang.Object
implements LedStateModificationLayer

Default modification layer that can modify virtually the led state of a led or a whole group of leds. This basic implementation of LedStateModificationLayer interface simply returns the led state of the led/button couple that is specified.

Author:
PJ Skyman

Constructor Summary
DefaultLedStateModificationLayer()
          Constructs a default led state modification layer.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLedStateModificationLayer


public DefaultLedStateModificationLayer()
Constructs a default led state modification layer.

Method Detail

getLedStateToShow


public LedButtonCouple.LedState getLedStateToShow(LedButtonCouple ledButtonCouple)
Returns the led state to show instead of the natural led state of the specified led/button couple. This basic implementation of the LedStateModificationLayer interface simply returns the led state of the specified led/button couple.

Specified by:
getLedStateToShow in interface LedStateModificationLayer
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.