com.swfm.mica.animators
Class MiSizeAnimator

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

public class MiSizeAnimator
extends MiPartAnimator

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

Constructor Summary
MiSizeAnimator(MiPart subject, MiBounds begin, MiBounds end, boolean intoView, double duration, double secondsBetweenTranslates)
           
 
Method Summary
 void animate(double startOfStep, double endOfStep)
          Animates for the given time slice.
 void end()
          Clean up after animation.
 void reverseDirection()
           
 void setup()
           
 void start()
          This is called in order for this animator to do any setup required
 
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, unschedule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiSizeAnimator

public MiSizeAnimator(MiPart subject,
                      MiBounds begin,
                      MiBounds end,
                      boolean intoView,
                      double duration,
                      double secondsBetweenTranslates)
Method Detail

reverseDirection

public void reverseDirection()

setup

public void setup()

start

public void start()
Description copied from class: MiPartAnimator
This is called in order for this animator to do any setup required

Specified by:
start in interface MiiAnimatable
Overrides:
start in class MiPartAnimator

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