public class Timer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Timer.Type |
| Constructor and Description |
|---|
Timer(float duration)
Creates a timer with the given type.
|
Timer(int type,
float duration) |
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(float secFF) |
float |
getAlpha() |
float |
getProgression() |
boolean |
isPaused() |
void |
reset() |
void |
rewind(float secRewind) |
void |
setPause(boolean pause) |
boolean |
togglePause() |
boolean |
update() |
public Timer(float duration)
LOOP and SINGLE timers need an explicit duration. This represents the time in seconds through a loop, or the time in seconds until the timer expires.
INFINITE timers ignore the duration.
duration - public Timer(int type,
float duration)
public void reset()
public boolean togglePause()
public boolean isPaused()
public void setPause(boolean pause)
public boolean update()
public void rewind(float secRewind)
public void fastForward(float secFF)
public float getAlpha()
public float getProgression()
Copyright © 2016 Java Graphics Society. All rights reserved.