com.jgoodies.animation.animations

Class GlyphAnimation

Implemented Interfaces:
Animation

public final class GlyphAnimation
extends AbstractAnimation

A text based animation that changes the scaling of the text's individual glyphs over the time.
Version:
$Revision: 1.1 $
Author:
Karsten Lentzsch

Constructor Summary

GlyphAnimation(GlyphLabel label, long duration, long glyphDelay, String text)
Constructs an animation that changes the scaling of individual glyphs over the duration.

Method Summary

protected void
applyEffect(long time)
Applies the effect: sets the text and time.

Methods inherited from class com.jgoodies.animation.AbstractAnimation

addAnimationListener, animate, applyEffect, duration, fireAnimationStarted, fireAnimationStopped, isFreezed, removeAnimationListener, toString

Constructor Details

GlyphAnimation

public GlyphAnimation(GlyphLabel label,
                      long duration,
                      long glyphDelay,
                      String text)
Constructs an animation that changes the scaling of individual glyphs over the duration.
Parameters:
label - the animation target label
duration - the animation duration
glyphDelay - a delay used to scale glyphs differently
text - the text to animation

Method Details

applyEffect

protected void applyEffect(long time)
Applies the effect: sets the text and time.
Overrides:
applyEffect in interface AbstractAnimation
Parameters:
time - the render time position

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