Modifier and Type | Field and 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 and Description |
---|
WindowShadeAnimation(ScrollFrame frame) |
Modifier and Type | Method and 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.
|
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
public WindowShadeAnimation(ScrollFrame frame)
public int getDuration()
public boolean hasNext()
public void reset()
public void setDuration(int duration)
duration
- The duration of the animation, in milliseconds.