sky.monome.frame
Class InertiaBoundedFrameWindow
java.lang.Object
sky.monome.frame.AbstractWindow<T,F>
sky.monome.frame.AbstractInertiaFrameWindow<SizedFrame,InertiaBoundedFrameWindow>
sky.monome.frame.InertiaBoundedFrameWindow
- All Implemented Interfaces:
- DynamicFrame<InertiaBoundedFrameWindow>, Frame
public class InertiaBoundedFrameWindow
- extends AbstractInertiaFrameWindow<SizedFrame,InertiaBoundedFrameWindow>
Window that makes a movable view over a frame with an inertia translation offset
that cannot exceed frame bounds.
The bounding effect needs an instance of SizedFrame
instead of
Frame
.
- Since:
- SkyMonome v1.3
- Author:
- PJ Skyman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InertiaBoundedFrameWindow
public InertiaBoundedFrameWindow(SizedFrame sizedFrame)
- Constructs an inertia bounded frame window with the specified sized frame.
- Parameters:
sizedFrame
- Sized frame over which this windows makes a view.
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.
applyXIncrement
protected void applyXIncrement()
- Apply the increment on the X-axis.
- Overrides:
applyXIncrement
in class AbstractInertiaFrameWindow<SizedFrame,InertiaBoundedFrameWindow>
- Since:
- SkyMonome v1.3
applyYIncrement
protected void applyYIncrement()
- Apply the increment on the Y-axis.
- Overrides:
applyYIncrement
in class AbstractInertiaFrameWindow<SizedFrame,InertiaBoundedFrameWindow>
- Since:
- SkyMonome v1.3