sky.monome.frame
Class InertiaMirroredFrameWindow

java.lang.Object
  extended by sky.monome.frame.AbstractWindow<T,F>
      extended by sky.monome.frame.AbstractInertiaFrameWindow<SizedFrame,InertiaMirroredFrameWindow>
          extended by sky.monome.frame.InertiaMirroredFrameWindow
All Implemented Interfaces:
DynamicFrame<InertiaMirroredFrameWindow>, Frame

public class InertiaMirroredFrameWindow
extends AbstractInertiaFrameWindow<SizedFrame,InertiaMirroredFrameWindow>

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

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.AbstractInertiaFrameWindow
intX, intY, LOOP_TIME, loopTime, x, xIncrement, y, yIncrement
 
Fields inherited from class sky.monome.frame.AbstractWindow
eventListenerList, frame, windowContainer
 
Constructor Summary
InertiaMirroredFrameWindow(SizedFrame sizedFrame)
          Constructs an inertia 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.AbstractInertiaFrameWindow
applyXIncrement, applyYIncrement, getLoopTime, setLoopTime, setXIncrement, setYIncrement
 
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

InertiaMirroredFrameWindow

public InertiaMirroredFrameWindow(SizedFrame sizedFrame)
Constructs an inertia mirrored frame window with the specified sized frame.

Parameters:
sizedFrame - Sized frame over which this windows makes a view.
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.