public class TimerAnimation extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TimerAnimation.AnimateFloatProperty |
class |
TimerAnimation.AnimateProperty |
| Modifier and Type | Field and Description |
|---|---|
protected long |
finishTime |
protected long |
length |
protected ListenersHelper<TimerAnimationListener,TimerAnimationEvent> |
listeners |
protected long |
startTime |
protected long |
step |
protected Timer |
timer |
| Constructor and Description |
|---|
TimerAnimation() |
TimerAnimation(long step,
long len,
TimerAnimationListener... listeners) |
| Modifier and Type | Method and Description |
|---|---|
Closeable |
addListener(TimerAnimationListener listener) |
Closeable |
addListener(TimerAnimationListener listener,
boolean weakLink) |
TimerAnimation.AnimateProperty |
bean(Object bean,
String property) |
void |
fireEvent(TimerAnimationEvent event) |
long |
getFinishTime() |
long |
getLength() |
Set<TimerAnimationListener> |
getListeners() |
long |
getStartTime() |
long |
getStep() |
Timer |
getTimer() |
boolean |
hasListener(TimerAnimationListener listener) |
boolean |
isRunning() |
<T extends TimerAnimationEvent> |
on(Class<T> cls,
Reciver<T> rcv) |
protected void |
onTimer(long cur) |
void |
removeListener(TimerAnimationListener listener) |
protected void |
setFinishTime(long finishTime) |
void |
setLength(long length) |
protected void |
setStartTime(long startTime) |
void |
setStep(long step) |
void |
start() |
void |
stop() |
protected final ListenersHelper<TimerAnimationListener,TimerAnimationEvent> listeners
protected volatile long length
protected volatile long step
protected volatile long startTime
protected volatile long finishTime
protected Timer timer
public TimerAnimation()
public TimerAnimation(long step,
long len,
TimerAnimationListener... listeners)
public boolean hasListener(TimerAnimationListener listener)
public Set<TimerAnimationListener> getListeners()
public Closeable addListener(TimerAnimationListener listener)
public Closeable addListener(TimerAnimationListener listener, boolean weakLink)
public void removeListener(TimerAnimationListener listener)
public void fireEvent(TimerAnimationEvent event)
public <T extends TimerAnimationEvent> Closeable on(Class<T> cls, Reciver<T> rcv)
public long getLength()
public void setLength(long length)
public long getStep()
public void setStep(long step)
public long getStartTime()
protected void setStartTime(long startTime)
public long getFinishTime()
protected void setFinishTime(long finishTime)
public Timer getTimer()
public boolean isRunning()
public void stop()
public void start()
protected void onTimer(long cur)
public TimerAnimation.AnimateProperty bean(Object bean, String property)
Copyright © 2018. All rights reserved.