|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.looksgood.ani.AniCore
public class AniCore
The Class AniCore encapsulates the core features for Ani and AniSequence, it's not recommended to use this class standalone!.
| 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 | |
|---|---|
AniCore(PApplet thePapplet,
java.lang.String theAutostart,
java.lang.Object theTargetObject,
float theDurationEasing,
float theDurationDelay,
java.lang.String theTargetObjectFieldName,
float theEnd,
Easing theEasing,
java.lang.String theTimeMode,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
Instantiates a new ani core. |
|
| Method Summary | |
|---|---|
void |
end()
End the animation. |
float |
getBegin()
Gets the begin. |
java.lang.Object |
getCallbackObject()
Gets the object to invoke the callback method on |
float |
getDelay()
Gets the duration of delay. |
java.lang.String |
getDirection()
Gets the direction. |
float |
getDuration()
Gets the duration. |
float |
getDurationTotal()
Gets the duration: duration easing + duration delay. |
Easing |
getEasing()
Gets the easing. |
float |
getEnd()
Gets the end. |
java.lang.String |
getId()
Gets the id. |
java.lang.String |
getPlayMode()
Gets the play mode. |
float |
getPosition()
Gets the position. |
int |
getRepeatCount()
Gets the repeat count. |
int |
getRepeatNumber()
Gets the current repeat number. |
float |
getSeek()
Gets the current seek value (start = 0.0 end = 1.0) |
java.lang.String |
getTimeMode()
Gets the time mode. |
boolean |
isDelaying()
Checks if the animation is delaying. |
boolean |
isEnded()
Checks if the animation is ended. |
boolean |
isPlaying()
Checks if the animation is playing. |
boolean |
isRepeating()
Checks if the animation is repeating. |
void |
noRepeat()
Stop any repeating. |
void |
pause()
Pause the animation at the current position in time. |
void |
pre()
No need to call ever this method. |
void |
repeat()
Repeat the animation forever. |
void |
repeat(int theRepeatCount)
Sets the repeat count. |
void |
resume()
Resume the animation from the current position in time (adjustable with seek). |
void |
reverse()
Swap begin end of the animation. |
void |
seek(float theValue)
Seek the Animation to any position: start = 0.0 end = 1.0 |
boolean |
setBegin()
Sets the begin of the animation to the current value of the target. |
void |
setBegin(float theBegin)
Sets the begin of the animation to a new value. |
void |
setCallback(java.lang.String theCallback)
setup the callback methods: onStart, onEnd, onDelayEnd and onUpdate |
void |
setCallbackObject(java.lang.Object theCallbackObject)
Sets the object to invoke the callback method on |
void |
setDelay(float theDurationDelay)
Sets the delay duration. |
void |
setDuration(float theDurationEasing)
Sets the duration. |
void |
setEasing(Easing theEasing)
Sets the 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. |
void |
setEnd(float theEnd)
Sets the end. |
void |
setPlayMode(java.lang.String thePlayMode)
Sets the play mode: FORWARD, BACKWARD, YOYO. |
void |
setTimeMode(java.lang.String theTimeMode)
Sets the time mode: SECONDS or FRAMES. |
void |
start()
Start the animation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AniCore(PApplet thePapplet,
java.lang.String theAutostart,
java.lang.Object theTargetObject,
float theDurationEasing,
float theDurationDelay,
java.lang.String theTargetObjectFieldName,
float theEnd,
Easing theEasing,
java.lang.String theTimeMode,
java.lang.Object theCallbackObject,
java.lang.String theCallback)
thePapplet - the papplettheAutostart - the autostarttheTargetObject - the target objecttheDurationEasing - the duration easingtheDurationDelay - the duration delaytheTargetObjectFieldName - the target object field nametheEnd - the endtheEasing - the easingtheTimeMode - the time modetheCallbackObject - the object to call the callback method upontheCallback - the callback| Method Detail |
|---|
public boolean setBegin()
public void setBegin(float theBegin)
theBegin - the new beginpublic java.lang.Object getCallbackObject()
public void setCallbackObject(java.lang.Object theCallbackObject)
theCallbackObject - the object whose callback methods are calledpublic void setCallback(java.lang.String theCallback)
theCallback - the names of the callbacks for onStart, onEnd, onDelayEnd and onUpdatepublic void pre()
public void start()
public void end()
public void pause()
public void resume()
public void seek(float theValue)
theValue - seek valuepublic float getSeek()
public void reverse()
public java.lang.String getTimeMode()
public void setTimeMode(java.lang.String theTimeMode)
theTimeMode - the new time modepublic Easing getEasing()
public void setEasing(Easing theEasing)
theEasing - public java.lang.String getPlayMode()
public void setPlayMode(java.lang.String thePlayMode)
thePlayMode - the new play modepublic void repeat()
public void noRepeat()
public void repeat(int theRepeatCount)
theRepeatCount - the new repeat countpublic int getRepeatCount()
public int getRepeatNumber()
public java.lang.String getDirection()
public float getPosition()
public float getBegin()
public void setEnd(float theEnd)
theEnd - the new endpublic float getEnd()
public float getDurationTotal()
public float getDelay()
public void setDelay(float theDurationDelay)
theDurationDelay - the new delay durationpublic float getDuration()
public void setDuration(float theDurationEasing)
theDurationEasing - the new durationpublic java.lang.String getId()
public boolean isEnded()
public boolean isRepeating()
public boolean isDelaying()
public boolean isPlaying()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||