com.swfm.mica.animators
Class MiTranslateAnimator

java.lang.Object
  extended bycom.swfm.mica.animators.MiPartAnimator
      extended bycom.swfm.mica.animators.MiTranslateAnimator
All Implemented Interfaces:
MiiAnimatable

public class MiTranslateAnimator
extends MiPartAnimator

Version:
%I% %G%
Author:
Michael L. Davis

Constructor Summary
MiTranslateAnimator(MiPart subject, MiPoint destination, double duration, double secondsBetweenTranslates)
           
 
Method Summary
 void animate(double startOfStep, double endOfStep)
          Animates for the given time slice.
 void end()
          Clean up after animation.
 
Methods inherited from class com.swfm.mica.animators.MiPartAnimator
getDuration, getEnabled, getOnlyRunWhenSubjectVisible, getPacer, getStepTime, getSubject, isAnimatingForward, isAtEnd, isScheduled, resetStepTimer, resetTimer, schedule, scheduleAndWait, setDuration, setEnabled, setIsAnimatingForward, setOnlyRunWhenSubjectVisible, setPacer, setStepTime, setSubject, start, unschedule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiTranslateAnimator

public MiTranslateAnimator(MiPart subject,
                           MiPoint destination,
                           double duration,
                           double secondsBetweenTranslates)
Method Detail

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.

Parameters:
startOfStep - the beginning of the time slice
endOfStep - 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
Overrides:
end in class MiPartAnimator