AbstractEffect
, AlphaEffect
, CrossFadeEffect
, GalleryGroupResizeEffect
, GrowEffect
, MoveControlEffect
, MoveScrollBarEffect
, ParallelEffect
, ResizeEffect
, SequenceEffect
, SetBoundsEffect
, SetColorEffect
, ShakeEffect
public interface IEffect
Note : an effect should not do initialization in constructor, but at the first call to doEffect(). For instance, a move effect should not get the initial position of an object in the constructor, because the object may have moved between creation and effect start.
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() |
void cancel()
void doEffect(long time)
time
- - Current time in ms. This value may be larger than the effect
length.long getLength()
boolean isDone()