Revision 568b29d8
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/message/EffectMessage.java | ||
---|---|---|
22 | 22 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
23 | 23 |
|
24 | 24 |
import org.distorted.library.DistortedBitmap; |
25 |
import org.distorted.library.type.Interpolator;
|
|
25 |
import org.distorted.library.type.Dynamic;
|
|
26 | 26 |
|
27 | 27 |
/** |
28 | 28 |
* Defines all possible events a class implementing the {@link EffectListener} interface can receive. |
... | ... | |
42 | 42 |
/** |
43 | 43 |
* Interpolation of the effect has finished. |
44 | 44 |
* <p> |
45 |
* If you set up an interpolated effect and set its Interpolator to do 3.5 interpolations of 1000 ms each
|
|
46 |
* with calls to {@link Interpolator#setCount(float)} and {@link Interpolator#setDuration(long)},
|
|
45 |
* If you set up an interpolated effect and set its Dynamic to do 3.5 interpolations of 1000 ms each
|
|
46 |
* with calls to {@link Dynamic#setCount(float)} and {@link Dynamic#setDuration(long)},
|
|
47 | 47 |
* then you are going to get this message exactly once after 3.5*1000 = 3500 milliseconds when the interpolation |
48 | 48 |
* finishes. You will never get this message if you set the effect to go on indefinitely with a call to |
49 |
* {@link Interpolator#setCount(float)}.
|
|
49 |
* {@link Dynamic#setCount(float)}.
|
|
50 | 50 |
* <p> |
51 | 51 |
* If then the end effect is equal to the effect's unity, then immediately after this message you |
52 | 52 |
* will also get a EFFECT_REMOVED message. |
Also available in: Unified diff
Major push towards simplifying DistortedObject's public API.
All MATRIX effects are using the new API - the 'DataND' marker interfaces.