|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.util.tree.WindowShadeAnimation
public class WindowShadeAnimation
Animation to minimize a frame with a window shade effect.
Field Summary | |
---|---|
protected long |
animationStart
Time when the animation started. |
int |
DEFAULT_DURATION
Default animation duration, in milliseconds. |
protected int |
duration
Duration, in milliseconds, of the animation. |
protected ScrollFrame |
frame
|
protected int |
maximizedWindowHeight
|
protected int |
startWindowHeight
|
protected int |
targetWindowHeight
|
protected Size |
targetWindowSize
|
Constructor Summary | |
---|---|
WindowShadeAnimation(ScrollFrame frame)
|
Method Summary | |
---|---|
int |
getDuration()
Indicates the duration of the animation. |
boolean |
hasNext()
Indicates whether or not there more steps left in the animation. |
void |
reset()
Reset the animation to the starting state. |
void |
setDuration(int duration)
Specifies the duration of the animation. |
void |
step()
Step the animation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long animationStart
public int DEFAULT_DURATION
protected int duration
protected ScrollFrame frame
protected int maximizedWindowHeight
protected int startWindowHeight
protected int targetWindowHeight
protected Size targetWindowSize
Constructor Detail |
---|
public WindowShadeAnimation(ScrollFrame frame)
Method Detail |
---|
public int getDuration()
public boolean hasNext()
hasNext
in interface Animation
true
if there are more steps.public void reset()
reset
in interface Animation
public void setDuration(int duration)
duration
- The duration of the animation, in milliseconds.public void step()
step
in interface Animation
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |