com.swfm.mica.animators
Class MiAnimator
java.lang.Object
com.swfm.mica.animators.MiAnimator
- All Implemented Interfaces:
- MiiAnimatable, MiiAnimator
- Direct Known Subclasses:
- MiSimpleTimer
- public class MiAnimator
- extends java.lang.Object
- implements MiiAnimator
- Version:
- %I% %G%
- Author:
- Michael L. Davis
|
Constructor Summary |
MiAnimator(MiiAnimatable subject,
long stepTime)
|
MiAnimator(MiiAnimatable subject,
long stepTime,
long duration)
|
MiAnimator(MiiAnimatable subject,
long startTime,
long stepTime,
long duration)
|
MiAnimator(MiiAnimatable subject,
long startTime,
long stepTime,
long duration,
int lifeCycle)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MiAnimator
public MiAnimator(MiiAnimatable subject,
long stepTime)
MiAnimator
public MiAnimator(MiiAnimatable subject,
long stepTime,
long duration)
MiAnimator
public MiAnimator(MiiAnimatable subject,
long startTime,
long stepTime,
long duration)
MiAnimator
public MiAnimator(MiiAnimatable subject,
long startTime,
long stepTime,
long duration,
int lifeCycle)
getStartTime
public long getStartTime()
- Specified by:
getStartTime in interface MiiAnimator
getStepTime
public long getStepTime()
- Specified by:
getStepTime in interface MiiAnimator
setStepTime
public void setStepTime(long stepTime)
getDuration
public long getDuration()
- Specified by:
getDuration in interface MiiAnimator
setDuration
public void setDuration(long millisecs)
getLifeCycle
public int getLifeCycle()
- Specified by:
getLifeCycle in interface MiiAnimator
getPacer
public MiiAnimatorPacer getPacer()
- Specified by:
getPacer in interface MiiAnimator
setPacer
public void setPacer(MiiAnimatorPacer pacer)
start
public void start()
- Description copied from interface:
MiiAnimatable
- Initialize before animation.
- Specified by:
start in interface MiiAnimatable
animate
public void animate(double startOfStep,
double endOfStep)
- Description copied from interface:
MiiAnimatable
- Animates for the given time slice. The beginning and
end are normalized (0.0 to 1.0), 0.0 being the start
of the animation and 1.0 the end.
- Specified by:
animate in interface MiiAnimatable
- Parameters:
startOfStep - the beginning of the time sliceendOfStep - the end of the time slice
end
public void end()
- Description copied from interface:
MiiAnimatable
- Clean up after animation.
- Specified by:
end in interface MiiAnimatable
setEnabled
public void setEnabled(boolean flag)
- Specified by:
setEnabled in interface MiiAnimator
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled in interface MiiAnimator