IEffect
Grow
, MoveControl
, MoveScrollBar
, Resize
, SetAlpha
, SetBounds
, Shake
public abstract class AbstractEffect extends java.lang.Object implements IEffect
Constructor | Description |
---|---|
AbstractEffect(long lengthMilli,
IMovement movement,
java.lang.Runnable onStop,
java.lang.Runnable onCancel) |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
applyEffect(long currentTime) |
Apply this effect.
|
void |
cancel() |
Set the effect as done and run the cancel runnable.
|
void |
doEffect() |
Apply effect to the target according to the current time.
|
long |
getCurrentTime() |
|
boolean |
isDone() |
|
void |
processEnd() |
Check if the effect has ended.
|
public AbstractEffect(long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
public abstract void applyEffect(long currentTime)
currentTime
- public long getCurrentTime()
public void processEnd()
public void cancel()
IEffect
public void doEffect()
IEffect