|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gicentre.utils.network.traer.animation.Animator
public class Animator
Class for controlling all the smoothers. It can be used to create smoothers and then call
this class's tick() method inside a sketch's draw() to advance
the time for all smoothers.
| Constructor Summary | |
|---|---|
Animator(float smoothness)
Creates an animator with the given smoothness. |
|
| Method Summary | |
|---|---|
Smoother2D |
make2DSmoother()
Adds a 2D smoother that will be handled by this animator. |
Smoother3D |
make3DSmoother()
Adds a 3D smoother that will be handled by this animator. |
Smoother |
makeSmoother()
Adds a smoother that will be handled by this animator. |
void |
setSmoothness(float smoothness)
Sets the smoothness of all smoothers that have been made by this animator. |
void |
tick()
Advances time for all smoothers that have been made by this animator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Animator(float smoothness)
smoothness - The smoothness of the animator between 0 and 1. A value of 0 has abrupt
changes, 1 is very smooth. A value of 0.9 gives nice workable smoothness
for typical animations.| Method Detail |
|---|
public final Smoother makeSmoother()
public final Smoother2D make2DSmoother()
public final Smoother3D make3DSmoother()
public final void tick()
tick in interface Tickablepublic final void setSmoothness(float smoothness)
setSmoothness in interface Tickablesmoothness - The smoothness of the animator between 0 and 1. A value of 0 has abrupt
changes, 1 is very smooth. A value of 0.9 gives nice workable smoothness
for typical animations.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||