sky.monome.frame
Class FrameWindow


java.lang.Object

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

      extended by sky.monome.frame.AbstractFrameWindow<Frame,FrameWindow>

          extended by sky.monome.frame.FrameWindow

All Implemented Interfaces:
DynamicFrame<FrameWindow>, Frame

public class FrameWindow
extends AbstractFrameWindow<Frame,FrameWindow>

Window that makes a movable view over a frame with a static translation offset and without any mirroring effect at frame bounds.

Author:
PJ Skyman

Nested Class Summary
 
Nested classes/interfaces inherited from class sky.monome.frame.AbstractWindow
AbstractWindow.WindowType
 
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
FrameWindow(Frame frame)
          Constructs a frame window with the specified frame and the default window type WindowType.LEDS_OFF_OUTSIDE.
FrameWindow(Frame frame, AbstractWindow.WindowType windowType)
          Constructs a frame window with the specified frame and the specified window type.
 
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

FrameWindow


public FrameWindow(Frame frame)
Constructs a frame window with the specified frame and the default window type WindowType.LEDS_OFF_OUTSIDE.

Parameters:
frame - Frame over which this windows makes a view.

FrameWindow


public FrameWindow(Frame frame,

                   AbstractWindow.WindowType windowType)
Constructs a frame window with the specified frame and the specified window type.

Parameters:
frame - Frame over which this windows makes a view.
windowType - Window type to respect.
Method Detail

get


public LedButtonCouple.LedState get(int x,

                                    int y)
Returns the led state at specified coordinates.

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