public final class Animations
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Animations.OneTimeAnimation
Used to apply an effect one-time only.
|
Modifier and Type | Method and Description |
---|---|
static Animation |
offset(Animation animation,
long beginTime)
Creates and returns an animation that is defined by a given
animation and offset; the resulting animation applies
the original effect shifted in time.
|
static Animation |
parallel(Animation... animations)
Creates and returns a parallel time container for the given animations,
that is an animation that applies the effect of the given animations
at the same time.
|
static Animation |
parallel(java.util.List<Animation> animations)
Creates and returns a parallel time container, that is an animation
that applies the effect of the given animations all at the same time.
|
static Animation |
pause(long duration)
Creates and returns a pausing animation that has no effect
but a duration.
|
static Animation |
repeat(Animation animation,
float repeatCount)
Creates and returns an animation that is defined by repeating the given
animation.
|
static Animation |
repeat(Animation animation,
long duration)
Creates and returns an animation that is defined by repeating
the given animation for the given duration.
|
static Animation |
reverse(Animation animation)
Creates and returns an animation that is defined by reverting
the given animation over the time.
|
static Animation |
sequential(Animation... animations)
Creates and returns a sequenced time container that is an animation,
that concatenates the given array of animations over the time.
|
static Animation |
sequential(java.util.List<Animation> animations)
Creates and returns a sequenced time container that is an animation,
that concatenates the given list of animations over the time.
|
public static Animation offset(Animation animation, long beginTime)
animation
- the animation to shiftbeginTime
- the time to begin the shifted animationpublic static Animation parallel(java.util.List<Animation> animations)
animations
- a List
of animationspublic static Animation parallel(Animation... animations)
animations
- the animations to be parallizedpublic static Animation pause(long duration)
duration
- the pause durationpublic static Animation repeat(Animation animation, float repeatCount)
animation
- the animation to repeatrepeatCount
- the number of repetitionspublic static Animation repeat(Animation animation, long duration)
animation
- the animation to repeatduration
- the duration of the repeated animationpublic static Animation reverse(Animation animation)
animation
- the animation to reversepublic static Animation sequential(java.util.List<Animation> animations)
animations
- a List
of animationsCopyright © 2001-2011 JGoodies Karsten Lentzsch. All Rights Reserved.