| java.lang.Object com.jgoodies.animation.AbstractAnimation com.jgoodies.animation.animations.BasicTextAnimation
Method Summary | |
protected void | applyEffect(long time) Applies the effect: sets color, spacing, scaling and offset,
the latter only if enabled. | public static AnimationFunction | cinemaFadeColorFunction(long duration, Color baseColor) Creates and answers the color animation function for the default fade. | public static BasicTextAnimation | defaultFade(BasicTextLabel label, long duration, String text, Color baseColor) Creates and answers an animation, that provides a text fade-in and -out. | public static AnimationFunction | defaultFadeColorFunction(long duration, Color baseColor) Creates and answers the color animation function for the default fade. | public static AnimationFunction | defaultOffsetFunction() Returns the animation function for the default random position offset. | public static BasicTextAnimation | defaultScale(BasicTextLabel label, long duration, String text, Color baseColor) Creates and answers an animation, that provides a text fade-in
and -out and scales the text while fading out. | public static AnimationFunction | defaultScaleColorFunction(long duration, Color baseColor) Creates and answers the animation function for the default scaling. | public static AnimationFunction | defaultScaleFunction(long duration) Creates and answers the default scaling animation function. | public static BasicTextAnimation | defaultSpace(BasicTextLabel label, long duration, String text, Color baseColor) Creates and answers an animation, that provides a text fade-in
and -out and increases the glyph spacing. | public static AnimationFunction | defaultSpaceColorFunction(long duration, Color baseColor) Creates and answers the color animation function for
the default spacing animation. | public static AnimationFunction | defaultSpaceFunction(long duration) Creates and answers the default spacing animation function. | public boolean | isOffsetEnabled() Answers whether the random position offset is enabled. | public void | setOffsetEnabled(boolean b) Enables or disables the random position offset. |
BasicTextAnimation | public BasicTextAnimation(BasicTextLabel label, long duration, String text, AnimationFunction colorFunction, AnimationFunction scaleXFunction, AnimationFunction scaleYFunction, AnimationFunction spaceFunction)(Code) | | Constructs a text animation, that fades in a text, scales it and
fades it out. Uses the given color and scaling functions.
Parameters: label - the animation target component Parameters: duration - the animation duration Parameters: text - the text to fade in Parameters: colorFunction - the animation function for the color Parameters: scaleXFunction - the animation function for the horizontal scale Parameters: scaleYFunction - the animation function for the vertical scale Parameters: spaceFunction - the animation function for the glyph space |
applyEffect | protected void applyEffect(long time)(Code) | | Applies the effect: sets color, spacing, scaling and offset,
the latter only if enabled.
Parameters: time - the render time |
cinemaFadeColorFunction | public static AnimationFunction cinemaFadeColorFunction(long duration, Color baseColor)(Code) | | Creates and answers the color animation function for the default fade.
Parameters: duration - the animation duration Parameters: baseColor - the base color for the fade effect a Color-valued animation function for the default fade |
defaultFade | public static BasicTextAnimation defaultFade(BasicTextLabel label, long duration, String text, Color baseColor)(Code) | | Creates and answers an animation, that provides a text fade-in and -out.
Parameters: label - the animation target component Parameters: duration - the animation duration Parameters: text - the text to fade in Parameters: baseColor - the base color for the fade effect an animation with a default text fade |
defaultFadeColorFunction | public static AnimationFunction defaultFadeColorFunction(long duration, Color baseColor)(Code) | | Creates and answers the color animation function for the default fade.
Parameters: duration - the animation duration Parameters: baseColor - the base color for the fade effect a Color-valued animation function for the default fade |
defaultOffsetFunction | public static AnimationFunction defaultOffsetFunction()(Code) | | Returns the animation function for the default random position offset.
an animation function for a default random offset |
defaultScale | public static BasicTextAnimation defaultScale(BasicTextLabel label, long duration, String text, Color baseColor)(Code) | | Creates and answers an animation, that provides a text fade-in
and -out and scales the text while fading out.
Parameters: label - the animation target component Parameters: duration - the animation duration Parameters: text - the text to fade in Parameters: baseColor - the base color for the fade effect an animation with a default scaling text effect |
defaultScaleColorFunction | public static AnimationFunction defaultScaleColorFunction(long duration, Color baseColor)(Code) | | Creates and answers the animation function for the default scaling.
Parameters: duration - the animation duration Parameters: baseColor - the base color for the fade effect a Color-valued animation function for the default scaling |
defaultScaleFunction | public static AnimationFunction defaultScaleFunction(long duration)(Code) | | Creates and answers the default scaling animation function.
Parameters: duration - the animation duration an animation function for the default scaling effect |
defaultSpace | public static BasicTextAnimation defaultSpace(BasicTextLabel label, long duration, String text, Color baseColor)(Code) | | Creates and answers an animation, that provides a text fade-in
and -out and increases the glyph spacing.
Parameters: label - the animation target component Parameters: duration - the animation duration Parameters: text - the text to fade in Parameters: baseColor - the base color for the fade effect an animation with a default glyph spacing effect |
defaultSpaceColorFunction | public static AnimationFunction defaultSpaceColorFunction(long duration, Color baseColor)(Code) | | Creates and answers the color animation function for
the default spacing animation.
Parameters: duration - the animation duration Parameters: baseColor - the base color for the fade effect a Color-valued animation function for the default spacing |
defaultSpaceFunction | public static AnimationFunction defaultSpaceFunction(long duration)(Code) | | Creates and answers the default spacing animation function.
Parameters: duration - the animation duration an animation function for the default spacing effect |
isOffsetEnabled | public boolean isOffsetEnabled()(Code) | | Answers whether the random position offset is enabled.
true indicates offset enabled, false disabled |
setOffsetEnabled | public void setOffsetEnabled(boolean b)(Code) | | Enables or disables the random position offset.
Parameters: b - the new enablement |
|
|