public interface Effect<T>
The Effect object is basically a stylable animation that can be applied to GUI elements. Many GUI elements can share the same Effect object as it's only a factory that creates the animation objects when the effect is run.
Modifier and Type | Method and Description |
---|---|
Animation |
create(T target,
EffectInfo existing)
Creates a new animation task that will replace any existing
animation task for this Effect's channel.
|
java.lang.String |
getChannel()
Returns the channel name that will be used for looking up
existing animations for a given target.
|
java.lang.String getChannel()
Animation create(T target, EffectInfo existing)