| Constructor | Description |
|---|---|
ParallelEffect(java.util.List effects) |
Wrap several effects and start them in parallel.
|
ParallelEffect(java.util.List effects,
java.lang.Runnable onStop,
java.lang.Runnable onCancel) |
Wrap several effects and start them in parallel.
|
ParallelEffect(IEffect[] effects) |
Wrap several effects and start them in parallel.
|
ParallelEffect(IEffect[] effects,
java.lang.Runnable onStop,
java.lang.Runnable onCancel) |
Wrap several effects and start them in parallel.
|
| 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 ParallelEffect(IEffect[] effects)
effects - public ParallelEffect(IEffect[] effects, java.lang.Runnable onStop, java.lang.Runnable onCancel)
effects - onStop - onCancel - public ParallelEffect(java.util.List effects)
effects - public ParallelEffect(java.util.List effects,
java.lang.Runnable onStop,
java.lang.Runnable onCancel)
effects - onStop - onCancel - public void cancel()
IEffectpublic void doEffect(long time)
IEffectpublic long getLength()
IEffect