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 longanimationStartTime when the animation started.intDEFAULT_DURATIONDefault animation duration, in milliseconds.protected intdurationDuration, in milliseconds, of the animation.protected ScrollFrameframeprotected intmaximizedWindowHeightprotected intstartWindowHeightprotected inttargetWindowHeightprotected SizetargetWindowSize
-
Constructor Summary
Constructors Constructor Description WindowShadeAnimation(ScrollFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDuration()Indicates the duration of the animation.booleanhasNext()Indicates whether or not there more steps left in the animation.voidreset()Reset the animation to the starting state.voidsetDuration(int duration)Specifies the duration of the animation.voidstep()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.
-
-