|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.looksgood.ani.AniSequence
public class AniSequence
The Class AniSequence creates sequences out of instances of Ani. Each step is either one single Ani or multiple Anis at the same time (in parallel). Please note: AniSequence expects that you add only Anis which do have playMode/repeatMode set to BACKWARD, YOYO, COUNT and FOREVER!
| Constructor Summary | |
|---|---|
AniSequence(PApplet thePapplet)
Instantiates a new ani sequence. |
|
| Method Summary | |
|---|---|
void |
add(Ani theAni)
Adds a single Ani to the sequence |
void |
add(Ani[] theAnis)
Adds multiple Anis to the sequence |
void |
beginSequence()
Begin sequence |
void |
beginStep()
Begin a new step, everything after until endStep() is called is treated as a single step |
void |
endSequence()
End sequence |
void |
endStep()
End the step |
float |
getDuration()
Gets the duration of the sequence |
float |
getSeek()
Gets the current seek value (start = 0.0 end = 1.0) |
int |
getStepCount()
Gets the count step |
int |
getStepNumber()
Gets the current step |
float |
getTime()
Gets the current position in time of the sequence |
boolean |
isEnded()
Checks if the sequence is ended. |
boolean |
isPlaying()
Checks if sequence is playing |
void |
pause()
Pause the sequence at the current position in time |
void |
pre()
No need to call ever this method. |
void |
resume()
Resume the sequence from the current position in time (adjustable with seek) |
void |
seek(float theValue)
Seek the sequence to any position: start = 0.0 end = 1.0 |
void |
start()
Start the first step of the sequence |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AniSequence(PApplet thePapplet)
thePapplet - | Method Detail |
|---|
public void pre()
public void seek(float theValue)
theValue - seek value: 0.0 - 1.0public void add(Ani theAni)
theAni - public void add(Ani[] theAnis)
theAnis - public void beginStep()
public void endStep()
public void start()
public void resume()
public void pause()
public void beginSequence()
public void endSequence()
public boolean isPlaying()
public boolean isEnded()
public float getSeek()
public float getDuration()
public int getStepNumber()
public int getStepCount()
public float getTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||