com.swfm.mica.animators
Class MiSlideInOrOutOfViewAnimator

java.lang.Object
  extended bycom.swfm.mica.animators.MiPartAnimator
      extended bycom.swfm.mica.animators.MiSlideInOrOutOfViewAnimator
All Implemented Interfaces:
MiiAnimatable, MiiTypes

public class MiSlideInOrOutOfViewAnimator
extends MiPartAnimator
implements MiiTypes

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

Field Summary
   
Constructor Summary
MiSlideInOrOutOfViewAnimator(MiPart subject, int direction, boolean slideIntoView, 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 setSubject(MiPart subject)
           
 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, unschedule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiSlideInOrOutOfViewAnimator

public MiSlideInOrOutOfViewAnimator(MiPart subject,
                                    int direction,
                                    boolean slideIntoView,
                                    double duration,
                                    double secondsBetweenTranslates)
Method Detail

reverseDirection

public void reverseDirection()

setSubject

public void setSubject(MiPart subject)
Overrides:
setSubject in class MiPartAnimator

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.

Specified by:
animate in interface MiiAnimatable
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