NASA World Wind

gov.nasa.worldwind.util.tree
Class WindowShadeAnimation

java.lang.Object
  extended by gov.nasa.worldwind.util.tree.WindowShadeAnimation
All Implemented Interfaces:
Animation

public class WindowShadeAnimation
extends Object
implements Animation

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

animationStart

protected long animationStart
Time when the animation started.


DEFAULT_DURATION

public int DEFAULT_DURATION
Default animation duration, in milliseconds.


duration

protected int duration
Duration, in milliseconds, of the animation.


frame

protected ScrollFrame frame

maximizedWindowHeight

protected int maximizedWindowHeight

startWindowHeight

protected int startWindowHeight

targetWindowHeight

protected int targetWindowHeight

targetWindowSize

protected Size targetWindowSize
Constructor Detail

WindowShadeAnimation

public WindowShadeAnimation(ScrollFrame frame)
Method Detail

getDuration

public int getDuration()
Indicates the duration of the animation.

Returns:
The duration of the animation, in milliseconds.

hasNext

public boolean hasNext()
Indicates whether or not there more steps left in the animation.

Specified by:
hasNext in interface Animation
Returns:
true if there are more steps.

reset

public void reset()
Reset the animation to the starting state.

Specified by:
reset in interface Animation

setDuration

public void setDuration(int duration)
Specifies the duration of the animation.

Parameters:
duration - The duration of the animation, in milliseconds.

step

public void step()
Step the animation.

Specified by:
step in interface Animation

NASA World Wind