Package totalcross.ui.anim
Class FadeAnimation
- java.lang.Object
-
- totalcross.ui.anim.ControlAnimation
-
- totalcross.ui.anim.FadeAnimation
-
- All Implemented Interfaces:
UpdateListener
public class FadeAnimation extends ControlAnimation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class totalcross.ui.anim.ControlAnimation
ControlAnimation.AnimationFinished
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_FADEstatic intmaxFadeChange this will affect all fade animations until you reset it to DEFAULT_MAX_FADE.-
Fields inherited from class totalcross.ui.anim.ControlAnimation
c, delayAfterFinish, executedTime, releaseScreenShot, totalTime, useOffscreen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidanimate()static FadeAnimationcreate(Control c, boolean fadeIn, ControlAnimation.AnimationFinished animFinish, int totalTime)Creates a fade animation, fading in or out the given controlvoidstart()-
Methods inherited from class totalcross.ui.anim.ControlAnimation
computeSpeed, setAnimationFinishedAction, stop, then, updateListenerTriggered, with
-
-
-
-
Field Detail
-
DEFAULT_MAX_FADE
public static int DEFAULT_MAX_FADE
-
maxFade
public static int maxFade
Change this will affect all fade animations until you reset it to DEFAULT_MAX_FADE.- See Also:
Toast
-
-
Method Detail
-
start
public void start()
- Overrides:
startin classControlAnimation
-
animate
protected void animate()
- Specified by:
animatein classControlAnimation
-
create
public static FadeAnimation create(Control c, boolean fadeIn, ControlAnimation.AnimationFinished animFinish, int totalTime)
Creates a fade animation, fading in or out the given control- Parameters:
c- The control to be fadedfadeIn- True will make the control appear, false will make it disappear.animFinish- An interface method to be called when the animation finished, or null if none.totalTime- The total time in millis that the animation will take, or -1 to use the default value (800ms).
-
-