|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.looksgood.ani.AniCore
de.looksgood.ani.Ani
public class Ani
The Class Ani, helps you to create time based animations in an very easy way. Static usage: Ani.to(this, 1.0, "x", 100, Ani.EXPO_IN_OUT); Or if you would like to keep a reference for a later use, there are this two options Ani ani = Ani.to(this, 1.5, "x", 100, Ani.EXPO_IN_OUT); Ani ani = new Ani(this, 1.5, "x", 100, Ani.EXPO_IN_OUT); For more see the examples
| Field Summary |
|---|
| Fields inherited from interface de.looksgood.ani.AniConstants |
|---|
ANI_DEBUG_PREFIX, AUTOSTART, BACK_IN, BACK_IN_OUT, BACK_OUT, BACKWARD, BOUNCE_IN, BOUNCE_IN_OUT, BOUNCE_OUT, CIRC_IN, CIRC_IN_OUT, CIRC_OUT, CUBIC_IN, CUBIC_IN_OUT, CUBIC_OUT, ELASTIC_IN, ELASTIC_IN_OUT, ELASTIC_OUT, EXPO_IN, EXPO_IN_OUT, EXPO_OUT, FORWARD, FRAMES, IN, IN_OUT, LINEAR, NO_AUTOSTART, NO_OVERWRITE, ON_DELAY_END, ON_END, ON_START, ON_UPDATE, OUT, OVERWRITE, QUAD_IN, QUAD_IN_OUT, QUAD_OUT, QUART_IN, QUART_IN_OUT, QUART_OUT, QUINT_IN, QUINT_IN_OUT, QUINT_OUT, SECONDS, SINE_IN, SINE_IN_OUT, SINE_OUT, VERSION, YOYO |
| Constructor Summary | |
|---|---|
Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd)
Instantiates a new ani. |
|
Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
Instantiates a new ani. |
|
Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
Instantiates a new ani. |
|
Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
Instantiates a new ani. |
|
Ani(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd)
Instantiates a new ani. |
|
Ani(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
Instantiates a new ani. |
|
Ani(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
Instantiates a new ani. |
|
| Method Summary | |
|---|---|
static void |
autostart()
Sets the defaultAutostartMode of all new created Animations to: On |
static Ani[] |
from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList)
animate from a value over time to a certain value, returns an instance of ani |
static Ani[] |
from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing)
animate from a value over time to a certain value, returns an instance of ani |
static Ani[] |
from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
animate from a value over time to a certain value, returns an instance of ani |
static Ani[] |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList)
animate from a value over time to a certain value, returns an instance of ani |
static Ani[] |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing)
animate from a value over time to a certain value, returns an instance of ani |
static Ani[] |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate from a value over time to a certain value, returns an instance of ani |
static Ani[] |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.String theCallback)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate from a value over time to a certain value, returns an instance of ani |
static Ani |
from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
animate from a value over time to a certain value, returns an instance of ani |
static java.lang.String |
getAutostartMode()
Gets the defaultAutostartMode mode: AUTOSTART or NO_AUTOSTART |
static Easing |
getDefaultEasing()
Gets the default easing. |
static java.lang.String |
getDefaultTimeMode()
Gets the defaultTimeMode. |
static java.lang.String |
getOverwriteMode()
Gets the defaultOverwriteMode: OVERWRITE or NO_OVERWRITE |
static void |
init(PApplet thePapplet)
Inits the Ani library. |
static void |
killAll()
kills all anis of the lookup table in Ani |
static void |
noAutostart()
Sets the defaultAutostartMode of all new created Animations to: Off |
static void |
noOverwrite()
Sets the defaultOverwriteMode of all new created Animations to: Off Disable overwrite manager of all on going animations A new ani instance is always created even if there is a potential conflict for an already existing animation |
static void |
overwrite()
Sets the defaultOverwriteMode of all new created Animations to: On Enable overwrite manager of all on going animations to avoid any possible conflicts |
static PApplet |
papplet()
Get the papplet. |
static void |
setDefaultEasing(Easing theDefaultEasing)
Sets the default easing: LINEAR, QUAD_IN, QUAD_OUT, QUAD_IN_OUT, CUBIC_IN, CUBIC_IN_OUT, CUBIC_OUT, QUART_IN, QUART_OUT, QUART_IN_OUT, QUINT_IN, QUINT_OUT, QUINT_IN_OUT, SINE_IN, SINE_OUT, SINE_IN_OUT, CIRC_IN, CIRC_OUT, CIRC_IN_OUT, EXPO_IN, EXPO_OUT, EXPO_IN_OUT, BACK_IN, BACK_OUT, BACK_IN_OUT, BOUNCE_IN, BOUNCE_OUT, BOUNCE_IN_OUT, ELASTIC_IN, ELASTIC_OUT, ELASTIC_IN_OUT or use a Custom Easing |
static void |
setDefaultTimeMode(java.lang.String theDefaultTimeMode)
Sets the defaultTimeMode: SECONDS or FRAMES |
static int |
size()
Size or count of all animations controlled by the overwrite features |
static Ani[] |
to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList)
animate to a value over time to a certain value, returns an instance of ani |
static Ani[] |
to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing)
animate to a value over time to a certain value, returns an instance of ani |
static Ani[] |
to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
animate to a value over time to a certain value, returns an instance of ani |
static Ani[] |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList)
animate to a value over time to a certain value, returns an instance of ani |
static Ani[] |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing)
animate to a value over time to a certain value, returns an instance of ani |
static Ani[] |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate to a value over time to a certain value, returns an instance of ani |
static Ani[] |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.String theCallback)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
animate to a value over time to a certain value, returns an instance of ani |
static Ani |
to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
animate to a value over time to a certain value, returns an instance of ani |
| Methods inherited from class de.looksgood.ani.AniCore |
|---|
end, getBegin, getCallbackObject, getDelay, getDirection, getDuration, getDurationTotal, getEasing, getEnd, getId, getPlayMode, getPosition, getRepeatCount, getRepeatNumber, getSeek, getTimeMode, isDelaying, isEnded, isPlaying, isRepeating, noRepeat, pause, pre, repeat, repeat, resume, reverse, seek, setBegin, setBegin, setCallback, setCallbackObject, setDelay, setDuration, setEasing, setEnd, setPlayMode, setTimeMode, start |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ani(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd)
theTarget - theTargettheDuration - theDurationtheFieldName - thefieldNametheEnd - theEnd
public Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEnd
public Ani(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasing
public Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasing
public Ani(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallback - theCallback
public Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallback - theCallback
public Ani(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback| Method Detail |
|---|
public static void init(PApplet thePapplet)
thePapplet - the _pappletpublic static PApplet papplet()
public static Ani to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEnd
public static Ani from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEnd
public static Ani to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEnd
public static Ani from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEnd
public static Ani to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasing
public static Ani from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasing
public static Ani to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasing
public static Ani from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasing
public static Ani to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallback - theCallback
public static Ani to(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static Ani from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallback - theCallback
public static Ani from(java.lang.Object theTarget,
float theDuration,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static Ani to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallback - theCallback
public static Ani to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static Ani from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallback - theCallback
public static Ani from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String theFieldName,
float theEnd,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaytheFieldName - theFieldNametheEnd - theEndtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static Ani[] to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList)
theTarget - theTargettheDuration - theDurationthePropertyList - _property list
public static Ani[] from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList)
theTarget - theTargettheDuration - theDurationthePropertyList - _property list
public static Ani[] to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaythePropertyList - _property list
public static Ani[] from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaythePropertyList - _property list
public static Ani[] to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing)
theTarget - theTargettheDuration - theDurationthePropertyList - _property listtheEasing - theEasing
public static Ani[] from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing)
theTarget - theTargettheDuration - theDurationthePropertyList - _property listtheEasing - theEasing
public static Ani[] to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaythePropertyList - _property listtheEasing - theEasing
public static Ani[] from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaythePropertyList - _property listtheEasing - theEasing
public static Ani[] to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationthePropertyList - _property listtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static Ani[] from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationthePropertyList - _property listtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static Ani[] to(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationthePropertyList - _property listtheEasing - theEasingtheCallback - theCallback
public static Ani[] from(java.lang.Object theTarget,
float theDuration,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationthePropertyList - _property listtheEasing - theEasingtheCallback - theCallback
public static Ani[] to(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaythePropertyList - _property listtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static Ani[] from(java.lang.Object theTarget,
float theDuration,
float theDelay,
java.lang.String thePropertyList,
Easing theEasing,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
theTarget - theTargettheDuration - theDurationtheDelay - theDelaythePropertyList - _property listtheEasing - theEasingtheCallbackObject - theCallbackObjecttheCallback - theCallback
public static void killAll()
public static void autostart()
public static void noAutostart()
public static java.lang.String getAutostartMode()
public static void overwrite()
public static void noOverwrite()
public static java.lang.String getOverwriteMode()
public static java.lang.String getDefaultTimeMode()
public static void setDefaultTimeMode(java.lang.String theDefaultTimeMode)
theDefaultTimeMode - the new default time modepublic static Easing getDefaultEasing()
public static void setDefaultEasing(Easing theDefaultEasing)
theDefaultEasing - the new default easingpublic static int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||