Package com.jgoodies.animation
Class Animations.OffsetAnimation
- java.lang.Object
-
- com.jgoodies.animation.AbstractAnimation
-
- com.jgoodies.animation.Animations.OffsetAnimation
-
- All Implemented Interfaces:
Animation
- Enclosing class:
- Animations
private static final class Animations.OffsetAnimation extends AbstractAnimation
Helper class that wraps an animation to give it a time offset.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OffsetAnimation(long beginTime, Animation animation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyEffect(long time)
Applies the animation effect for the given time to the animation target.-
Methods inherited from class com.jgoodies.animation.AbstractAnimation
addAnimationListener, animate, duration, fireAnimationStarted, fireAnimationStopped, isFreezed, removeAnimationListener, toString
-
-
-
-
Field Detail
-
animation
private final Animation animation
-
beginTime
private final long beginTime
-
-
Constructor Detail
-
OffsetAnimation
private OffsetAnimation(long beginTime, Animation animation)
-
-
Method Detail
-
applyEffect
protected void applyEffect(long time)
Description copied from class:AbstractAnimation
Applies the animation effect for the given time to the animation target.- Specified by:
applyEffect
in classAbstractAnimation
- Parameters:
time
- the time used to determine the animation effect
-
-