com.swfm.mica.animators
Class MiPartAnimator

java.lang.Object
  extended bycom.swfm.mica.animators.MiPartAnimator
All Implemented Interfaces:
MiiAnimatable
Direct Known Subclasses:
MiBlinkAnimator, MiCycleColorsAnimator, MiPropogateColorAnimator, MiSizeAnimator, MiSlideInOrOutOfViewAnimator, MiTranslateAnimator, MiTransparencyAnimator

public abstract class MiPartAnimator
extends java.lang.Object
implements MiiAnimatable

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

Constructor Summary
MiPartAnimator(MiPart obj)
           
MiPartAnimator(MiPart obj, double secondsBetweenAnimations)
           
 
Method Summary
 void end()
          Clean up after animation.
 double getDuration()
           
 boolean getEnabled()
           
 boolean getOnlyRunWhenSubjectVisible()
           
 MiiAnimatorPacer getPacer()
           
 double getStepTime()
           
 MiPart getSubject()
           
 boolean isAnimatingForward()
           
 boolean isAtEnd()
           
 boolean isScheduled()
           
 void resetStepTimer()
           
 void resetTimer()
           
 void schedule()
           
 void scheduleAndWait()
           
 void setDuration(double seconds)
           
 void setEnabled(boolean flag)
           
 void setIsAnimatingForward(boolean flag)
           
 void setOnlyRunWhenSubjectVisible(boolean flag)
           
 void setPacer(MiiAnimatorPacer pacer)
           
 void setStepTime(double seconds)
           
 void setSubject(MiPart obj)
           
 void start()
          This is called in order for this animator to do any setup required
 void unschedule()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.swfm.mica.animators.MiiAnimatable
animate
 

Constructor Detail

MiPartAnimator

public MiPartAnimator(MiPart obj)

MiPartAnimator

public MiPartAnimator(MiPart obj,
                      double secondsBetweenAnimations)
Method Detail

schedule

public void schedule()

unschedule

public void unschedule()

isScheduled

public boolean isScheduled()

setPacer

public void setPacer(MiiAnimatorPacer pacer)

getPacer

public MiiAnimatorPacer getPacer()

setIsAnimatingForward

public void setIsAnimatingForward(boolean flag)

isAnimatingForward

public boolean isAnimatingForward()

setSubject

public void setSubject(MiPart obj)

getSubject

public MiPart getSubject()

setEnabled

public void setEnabled(boolean flag)

getEnabled

public boolean getEnabled()

setStepTime

public void setStepTime(double seconds)

getStepTime

public double getStepTime()

setDuration

public void setDuration(double seconds)

getDuration

public double getDuration()

setOnlyRunWhenSubjectVisible

public void setOnlyRunWhenSubjectVisible(boolean flag)

getOnlyRunWhenSubjectVisible

public boolean getOnlyRunWhenSubjectVisible()

resetStepTimer

public void resetStepTimer()

resetTimer

public void resetTimer()

scheduleAndWait

public void scheduleAndWait()

start

public void start()
This is called in order for this animator to do any setup required

Specified by:
start in interface MiiAnimatable

end

public void end()
Description copied from interface: MiiAnimatable
Clean up after animation.

Specified by:
end in interface MiiAnimatable

isAtEnd

public boolean isAtEnd()