com.jgoodies.animation.animations
Class BasicTextAnimations

java.lang.Object
  extended by com.jgoodies.animation.animations.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, java.lang.String separatedTexts, java.awt.Color baseColor)
          Creates and answers the default color fade text sequence.
static Animation defaultScale(BasicTextLabel label1, BasicTextLabel label2, long singleDuration, long beginOffset, java.lang.String separatedTexts, java.awt.Color baseColor)
          Creates and answers the default scaling text sequence.
static Animation defaultSpace(BasicTextLabel label1, BasicTextLabel label2, long singleDuration, long beginOffset, java.lang.String separatedTexts, java.awt.Color baseColor)
          Creates and answers the default glyph spacing text sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

defaultFade

public static Animation defaultFade(BasicTextLabel label1,
                                    BasicTextLabel label2,
                                    long singleDuration,
                                    long beginOffset,
                                    java.lang.String separatedTexts,
                                    java.awt.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,
                                     java.lang.String separatedTexts,
                                     java.awt.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,
                                     java.lang.String separatedTexts,
                                     java.awt.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.