Class GlyphAnimation
- java.lang.Object
-
- com.jgoodies.animation.AbstractAnimation
-
- com.jgoodies.animation.swing.animations.GlyphAnimation
-
- All 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.6 $
-
-
Field Summary
Fields Modifier and Type Field Description private GlyphLabel
label
private java.lang.String
text
-
Constructor Summary
Constructors Constructor Description GlyphAnimation(GlyphLabel label, long duration, long glyphDelay, java.lang.String text)
Constructs an animation that changes the scaling of individual glyphs over the duration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyEffect(long time)
Applies the effect: sets the text and time.-
Methods inherited from class com.jgoodies.animation.AbstractAnimation
addAnimationListener, animate, duration, fireAnimationStarted, fireAnimationStopped, isFreezed, removeAnimationListener, toString
-
-
-
-
Field Detail
-
label
private final GlyphLabel label
-
text
private final java.lang.String text
-
-
Constructor Detail
-
GlyphAnimation
public GlyphAnimation(GlyphLabel label, long duration, long glyphDelay, java.lang.String text)
Constructs an animation that changes the scaling of individual glyphs over the duration.- Parameters:
label
- the animation target labelduration
- the animation durationglyphDelay
- a delay used to scale glyphs differentlytext
- the text to animation
-
-
Method Detail
-
applyEffect
protected void applyEffect(long time)
Applies the effect: sets the text and time.- Specified by:
applyEffect
in classAbstractAnimation
- Parameters:
time
- the render time position
-
-