|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.animation.BasicAnimator
public class BasicAnimator
A base class for an interpolating Animator.
| Field Summary | |
|---|---|
protected Interpolator |
interpolator
Used to drive the animators next value based on the interpolant returned by the Interpolator's next interpolant |
| Constructor Summary | |
|---|---|
BasicAnimator()
Constructs a BasicAnimator. |
|
BasicAnimator(Interpolator interpolator)
Constructs a BasicAnimator. |
|
| Method Summary | |
|---|---|
protected void |
flagLastStateInvalid()
|
boolean |
hasNext()
Returns true if the Animator has more elements. |
protected boolean |
isLastStateValid()
|
boolean |
isStopOnInvalidState()
|
void |
next()
Calls the set method with the next interpolant as determined
by the interpolator member. |
void |
set(double interpolant)
Calls the setImpl method with the interpolant value. |
protected void |
setImpl(double interpolant)
No-op intended to be overrided by deriving classes. |
void |
setStopOnInvalidState(boolean stop)
|
void |
start()
Starts the Animator, hasNext will now return true |
void |
stop()
Stops the Animator, hasNext will now return false |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Interpolator interpolator
Interpolator's next interpolant
| Constructor Detail |
|---|
public BasicAnimator()
BasicAnimator. Sets the Animator's Interpolator to
null.
public BasicAnimator(Interpolator interpolator)
BasicAnimator. The next method will use the passed
Interpolator to retrieve the interpolant
interpolator - The Interpolator to be used to get the interpolant for
setting the next value.| Method Detail |
|---|
protected void flagLastStateInvalid()
public boolean hasNext()
true if the Animator has more elements.
hasNext in interface Animatortrue if the Animator has more elementsprotected boolean isLastStateValid()
public boolean isStopOnInvalidState()
public void next()
set method with the next interpolant as determined
by the interpolator member.
next in interface Animatorpublic void set(double interpolant)
setImpl method.
set in interface Animatorinterpolant - A value between 0 and 1.protected void setImpl(double interpolant)
interpolant - A value between 0 and 1.public void setStopOnInvalidState(boolean stop)
public void start()
Animator, hasNext will now return true
start in interface Animatorpublic void stop()
Animator, hasNext will now return false
stop in interface Animator
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||