sky.monome.layer
Class InvertedLedStateModificationLayer


java.lang.Object

  extended by sky.monome.layer.InvertedLedStateModificationLayer

All Implemented Interfaces:
LedStateModificationLayer

public class InvertedLedStateModificationLayer
extends java.lang.Object
implements LedStateModificationLayer

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

Since:
SkyMonome v1.1
Author:
PJ Skyman

Constructor Summary
InvertedLedStateModificationLayer()
          Constructs an inverted 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

InvertedLedStateModificationLayer


public InvertedLedStateModificationLayer()
Constructs an inverted 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 implementation of the LedStateModificationLayer interface returns the inverted 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.