Package gov.nasa.worldwind.util.tree
Class WindowShadeAnimation
- java.lang.Object
-
- gov.nasa.worldwind.util.tree.WindowShadeAnimation
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description WindowShadeAnimation(ScrollFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
DEFAULT_DURATION
public int DEFAULT_DURATION
Default animation duration, in milliseconds.
-
frame
protected ScrollFrame frame
-
startWindowHeight
protected int startWindowHeight
-
targetWindowHeight
protected int targetWindowHeight
-
duration
protected int duration
Duration, in milliseconds, of the animation.
-
animationStart
protected long animationStart
Time when the animation started.
-
targetWindowSize
protected Size targetWindowSize
-
maximizedWindowHeight
protected int maximizedWindowHeight
-
-
Constructor Detail
-
WindowShadeAnimation
public WindowShadeAnimation(ScrollFrame frame)
-
-
Method Detail
-
reset
public void reset()
Reset the animation to the starting state.
-
hasNext
public boolean hasNext()
Indicates whether or not there more steps left in the animation.
-
getDuration
public int getDuration()
Indicates the duration of the animation.- Returns:
- The duration of the animation, in milliseconds.
-
setDuration
public void setDuration(int duration)
Specifies the duration of the animation.- Parameters:
duration
- The duration of the animation, in milliseconds.
-
-