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(long beginTime,
Animation animation)
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 animation1,
Animation animation2)
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 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(float repeatCount,
Animation animation)
Creates and answers an animation that is defined by repeating
the given animation.
|
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(Animation first,
Animation second)
Creates and returns an animation that is defined by concatenating
the two given animations.
|
static Animation |
sequential(java.util.List 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(long beginTime, Animation animation)
beginTime
- the time to begin the shifted animationanimation
- the animation to shiftpublic static Animation parallel(java.util.List animations)
animations
- a List
of animationspublic static Animation parallel(Animation animation1, Animation animation2)
animation1
- one of the animations to parallelizeanimation2
- the other animation to parallelizepublic static Animation pause(long duration)
duration
- the pause durationpublic static Animation repeat(float repeatCount, Animation animation)
repeatCount
- the number of repetitionsanimation
- the animation to repeatpublic static Animation reverse(Animation animation)
animation
- the animation to reversepublic static Animation sequential(java.util.List animations)
animations
- a List
of animationspublic static Animation sequential(Animation[] animations)
animations
- an array of animationspublic static Animation sequential(Animation first, Animation second)
first
- the first animation in the sequencesecond
- the second animation in the sequenceCopyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.