Constructor | Description |
---|---|
SequenceEffect(IEffect[] effects,
java.lang.Runnable onStop,
java.lang.Runnable onCancel) |
Run several effects one after another.
|
Modifier and Type | Method | Description |
---|---|---|
void |
cancel() |
Set the effect as done and run the cancel runnable.
|
void |
doEffect(long time) |
Apply effect to the target according to the given time.
|
long |
getLength() |
Get effect length
|
boolean |
isDone() |
public SequenceEffect(IEffect[] effects, java.lang.Runnable onStop, java.lang.Runnable onCancel)
Note :
effects
- onStop
- onCancel
- public void cancel()
IEffect
public void doEffect(long time)
IEffect
public long getLength()
IEffect