com.jgoodies.animation.animations

Class BasicTextAnimations


public final class BasicTextAnimations
extends java.lang.Object

Provides a text animation that shows an overlapping sequence of texts using a bunch of different effects: color fade, scaling, glyph spacing.
Version:
$Revision: 1.1 $
Author:
Karsten Lentzsch
See Also:
BasicTextAnimation

Method Summary

static Animation
defaultFade(BasicTextLabel label1, BasicTextLabel label2, long singleDuration, long beginOffset, String separatedTexts, Color baseColor)
Creates and answers the default color fade text sequence.
static Animation
defaultScale(BasicTextLabel label1, BasicTextLabel label2, long singleDuration, long beginOffset, String separatedTexts, Color baseColor)
Creates and answers the default scaling text sequence.
static Animation
defaultSpace(BasicTextLabel label1, BasicTextLabel label2, long singleDuration, long beginOffset, String separatedTexts, Color baseColor)
Creates and answers the default glyph spacing text sequence.

Method Details

defaultFade

public static Animation defaultFade(BasicTextLabel label1,
                                    BasicTextLabel label2,
                                    long singleDuration,
                                    long beginOffset,
                                    String separatedTexts,
                                    Color baseColor)
Creates and answers the default color fade text sequence.
Parameters:
label1 - a text label used to blend over
label2 - a second text label used to blend over
singleDuration - the duration of a single animation
beginOffset - an initial animation time offset
separatedTexts - a sequence of texts in a string separated by the | character
baseColor - the base color for the fade
Returns:
a default fade animation

defaultScale

public static Animation defaultScale(BasicTextLabel label1,
                                     BasicTextLabel label2,
                                     long singleDuration,
                                     long beginOffset,
                                     String separatedTexts,
                                     Color baseColor)
Creates and answers the default scaling text sequence.
Parameters:
label1 - a text label used to blend over
label2 - a second text label used to blend over
singleDuration - the duration of a single animation
beginOffset - an initial animation time offset
separatedTexts - a sequence of texts in a string separated by the | character
baseColor - the base color for the fade
Returns:
a default scaling blend over animation

defaultSpace

public static Animation defaultSpace(BasicTextLabel label1,
                                     BasicTextLabel label2,
                                     long singleDuration,
                                     long beginOffset,
                                     String separatedTexts,
                                     Color baseColor)
Creates and answers the default glyph spacing text sequence.
Parameters:
label1 - a text label used to blend over
label2 - a second text label used to blend over
singleDuration - the duration of a single animation
beginOffset - an initial animation time offset
separatedTexts - a sequence of texts in a string separated by the | character
baseColor - the base color for the fade
Returns:
a default space blend over animation

Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.