Package com.jgoodies.animation
Class Animations.SequencedAnimation
- java.lang.Object
-
- com.jgoodies.animation.AbstractAnimation
-
- com.jgoodies.animation.Animations.SequencedAnimation
-
- All Implemented Interfaces:
Animation
- Enclosing class:
- Animations
private static final class Animations.SequencedAnimation extends AbstractAnimation
Helper class to create a sequence of animations.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Animation>
animations
-
Constructor Summary
Constructors Modifier Constructor Description private
SequencedAnimation(java.util.List<Animation> animations)
-
Method Summary
All Methods Static 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.private static long
cumulatedDuration(java.util.List<Animation> animations)
-
Methods inherited from class com.jgoodies.animation.AbstractAnimation
addAnimationListener, animate, duration, fireAnimationStarted, fireAnimationStopped, isFreezed, removeAnimationListener, toString
-
-
-
-
Field Detail
-
animations
private final java.util.List<Animation> animations
-
-
Constructor Detail
-
SequencedAnimation
private SequencedAnimation(java.util.List<Animation> animations)
-
-
Method Detail
-
cumulatedDuration
private static long cumulatedDuration(java.util.List<Animation> animations)
-
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
-
-