Class MirroredFrameWindow


  extended by sky.monome.frame.AbstractWindow<T,F>

      extended by sky.monome.frame.AbstractFrameWindow<SizedFrame,MirroredFrameWindow>

          extended by sky.monome.frame.MirroredFrameWindow

All Implemented Interfaces:
DynamicFrame<MirroredFrameWindow>, Frame

public class MirroredFrameWindow
extends AbstractFrameWindow<SizedFrame,MirroredFrameWindow>

Window that makes a movable view over a frame with a static translation offset and with a mirroring effect at frame bounds. The mirroring effect needs an instance of SizedFrame instead of Frame.

PJ Skyman

Nested Class Summary
Nested classes/interfaces inherited from class sky.monome.frame.AbstractWindow
Field Summary
Fields inherited from class sky.monome.frame.AbstractFrameWindow
xOffset, yOffset
Fields inherited from class sky.monome.frame.AbstractWindow
eventListenerList, frame, windowContainer
Constructor Summary
MirroredFrameWindow(SizedFrame sizedFrame)
          Constructs a mirrored frame window with the specified sized frame.
Method Summary
 LedButtonCouple.LedState get(int x, int y)
          Returns the led state at specified coordinates.
Methods inherited from class sky.monome.frame.AbstractFrameWindow
move, translate
Methods inherited from class sky.monome.frame.AbstractWindow
addFrameListener, fireFrameChanged, getFrameListeners, getOnFrame, removeFrameListener, set, setOnFrame, setWindowContainer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MirroredFrameWindow(SizedFrame sizedFrame)
Constructs a mirrored frame window with the specified sized frame.

sizedFrame - Sized frame over which this windows makes a view.
Method Detail


public LedButtonCouple.LedState get(int x,

                                    int y)
Returns the led state at specified coordinates.

x - X-coordinate of the led state needed.
y - Y-coordinate of the led state needed.
The led state at specified coordinates.