|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.frame.AbstractWindow<T,F> sky.monome.frame.AbstractInertiaFrameWindow<T,F>
T
- Type of viewed frame.F
- Type of frame window that extends this abstract frame window.public abstract class AbstractInertiaFrameWindow<T extends Frame,F extends AbstractInertiaFrameWindow<T,F>>
Window that makes a movable view over a frame with an inertia translation offset. This class is the based class for all windows with an inertia translation offset.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class sky.monome.frame.AbstractWindow |
---|
AbstractWindow.WindowType |
Field Summary | |
---|---|
protected int |
intX
Truncated value of the offset on the X-axis. |
protected int |
intY
Truncated value of the offset on the Y-axis. |
protected static long |
LOOP_TIME
Standard loop time for internal refreshing of the offset. |
protected long |
loopTime
Loop time for internal refreshing of the offset. |
protected float |
x
Real value of the offset on the X-axis. |
protected float |
xIncrement
Value of the increment on the X-axis. |
protected float |
y
Real value of the offset on the Y-axis. |
protected float |
yIncrement
Value of the increment on the Y-axis. |
Fields inherited from class sky.monome.frame.AbstractWindow |
---|
eventListenerList, frame, windowContainer |
Constructor Summary | |
---|---|
AbstractInertiaFrameWindow(T frame)
Constructs an abstract inertia frame window with the specified frame. |
Method Summary | |
---|---|
protected void |
applyXIncrement()
Apply the increment on the X-axis. |
protected void |
applyYIncrement()
Apply the increment on the Y-axis. |
long |
getLoopTime()
Returns the loop time for internal refreshing of the offset, in milliseconds. |
void |
setLoopTime(long loopTime)
Modified the loop time for internal refreshing of the offset, in milliseconds. |
void |
setXIncrement(float xIncrement)
Modifies the increment on the X-axis. |
void |
setYIncrement(float yIncrement)
Modifies the increment on the Y-axis. |
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 |
Methods inherited from interface sky.monome.frame.Frame |
---|
get |
Field Detail |
---|
protected float x
protected float y
protected int intX
protected int intY
protected float xIncrement
protected float yIncrement
protected long loopTime
protected static final long LOOP_TIME
setLoopTime(long)
method.
Constructor Detail |
---|
public AbstractInertiaFrameWindow(T frame)
frame
- Frame over which this windows makes a view.Method Detail |
---|
public long getLoopTime()
public void setLoopTime(long loopTime)
loopTime
- New loop time for internal refreshing of the offset,
in milliseconds.public void setXIncrement(float xIncrement)
xIncrement
- New increment to store.public void setYIncrement(float yIncrement)
yIncrement
- New increment to store.protected void applyXIncrement()
protected void applyYIncrement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |