package aurelienribon.tweenengine; /** * TweenCallbacks are used to trigger actions at some specific times. They are * used in both Tweens and Timelines. The moment when the callback is * triggered depends on its registered triggers: *

* * BEGIN: right after the delay (if any)
* START: at each iteration beginning
* END: at each iteration ending, before the repeat delay
* COMPLETE: at last END event
* BACK_BEGIN: at the beginning of the first backward iteration
* BACK_START: at each backward iteration beginning, after the repeat delay
* BACK_END: at each backward iteration ending
* BACK_COMPLETE: at last BACK_END event *

* *

 {@code
 * forward :      BEGIN                                   COMPLETE
 * forward :      START    END      START    END      START    END
 * |--------------[XXXXXXXXXX]------[XXXXXXXXXX]------[XXXXXXXXXX]
 * backward:      bEND  bSTART      bEND  bSTART      bEND  bSTART
 * backward:      bCOMPLETE                                 bBEGIN
 * }
* * @see Tween * @see Timeline * @author Aurelien Ribon | http://www.aurelienribon.com/ */ public interface TweenCallback { public static final int BEGIN = 0x01; public static final int START = 0x02; public static final int END = 0x04; public static final int COMPLETE = 0x08; public static final int BACK_BEGIN = 0x10; public static final int BACK_START = 0x20; public static final int BACK_END = 0x40; public static final int BACK_COMPLETE = 0x80; public static final int ANY_FORWARD = 0x0F; public static final int ANY_BACKWARD = 0xF0; public static final int ANY = 0xFF; public void onEvent(int type, BaseTween source); }