com.swfm.mica.animators
Class MiTransparencyAnimator
java.lang.Object
com.swfm.mica.animators.MiPartAnimator
com.swfm.mica.animators.MiTransparencyAnimator
- All Implemented Interfaces:
- MiiAnimatable
- public class MiTransparencyAnimator
- extends MiPartAnimator
This is much too slow to be usable...
- Version:
- %I% %G%
- Author:
- Michael L. Davis
|
Constructor Summary |
MiTransparencyAnimator(MiPart subject,
double startTransparency,
double endTransparency,
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 |
MiTransparencyAnimator
public MiTransparencyAnimator(MiPart subject,
double startTransparency,
double endTransparency,
double duration,
double secondsBetweenTranslates)
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.
- 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- Overrides:
end in class MiPartAnimator