Package com.jgoodies.animation
Class Animations.OneTimeAnimation
- java.lang.Object
-
- com.jgoodies.animation.AbstractAnimation
-
- com.jgoodies.animation.Animations.OneTimeAnimation
-
- All Implemented Interfaces:
Animation
- Enclosing class:
- Animations
public abstract static class Animations.OneTimeAnimation extends AbstractAnimation
Used to apply an effect one-time only.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
effectApplied
-
Constructor Summary
Constructors Constructor Description OneTimeAnimation()
Constructs aOneTimeAnimation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
animate(long time)
Applies the effect to the animation target, only if is hasn't been applied before.-
Methods inherited from class com.jgoodies.animation.AbstractAnimation
addAnimationListener, applyEffect, duration, fireAnimationStarted, fireAnimationStopped, isFreezed, removeAnimationListener, toString
-
-
-
-
Method Detail
-
animate
public void animate(long time)
Applies the effect to the animation target, only if is hasn't been applied before.- Specified by:
animate
in interfaceAnimation
- Overrides:
animate
in classAbstractAnimation
- Parameters:
time
- the time used to determine the animation effect
-
-