Logo Search packages:      
Sourcecode: libjgoodies-animation-java version File versions  Download package

com::jgoodies::animation::animations::BasicTextAnimation::BasicTextAnimation ( BasicTextLabel  label,
long  duration,
String  text,
AnimationFunction  colorFunction,
AnimationFunction  scaleXFunction,
AnimationFunction  scaleYFunction,
AnimationFunction  spaceFunction 
) [inline]

Constructs a text animation, that fades in a text, scales it and fades it out. Uses the given color and scaling functions.

label the animation target component
duration the animation duration
text the text to fade in
colorFunction the animation function for the color
scaleXFunction the animation function for the horizontal scale
scaleYFunction the animation function for the vertical scale
spaceFunction the animation function for the glyph space

Definition at line 79 of file BasicTextAnimation.java.

References com::jgoodies::animation::AnimationFunctions::asFloat(), defaultFadeColorFunction(), and defaultOffsetFunction().

Referenced by defaultFade(), defaultScale(), and defaultSpace().


        this.label = label;
        this.text = text;
        this.colorFunction =
            colorFunction != null
                ? colorFunction
                : defaultFadeColorFunction(duration, Color.DARK_GRAY);
        this.scaleXFunction =
                scaleXFunction != null
                    ? scaleXFunction
                    : AnimationFunctions.ONE);
        this.scaleYFunction =
                scaleYFunction != null
                    ? scaleYFunction
                    : AnimationFunctions.ONE);
        this.spaceFunction =
                spaceFunction != null
                    ? spaceFunction
                    : AnimationFunctions.ZERO);
        this.offsetFunction =

Generated by  Doxygen 1.6.0   Back to index