com.jgoodies.animation
Class Animations
java.lang.Object
com.jgoodies.animation.Animations
public final class Animations
extends java.lang.Object
This class consists only of static methods that either
operate on animations or create useful standard animations.
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(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 | 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 | 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(List animations) - Creates and returns a sequenced time container that is an animation,
that concatenates the given list 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(Animation[] animations) - Creates and returns a sequenced time container that is an animation,
that concatenates the given array of animations over the time.
|
offset
public 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.
beginTime
- the time to begin the shifted animationanimation
- the animation to shift
parallel
public static Animation parallel(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.
animations
- a List
of animations
- a parallel time container for the given animations
parallel
public 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.
animation1
- one of the animations to parallelizeanimation2
- the other animation to parallelize
- the parallelized animation
pause
public static Animation pause(long duration)
Creates and returns a pausing animation that has no effect
but a duration. It is useful in combination with sequenced
and parallel time containers.
duration
- the pause duration
- an animation that has no effect
repeat
public static Animation repeat(float repeatCount,
Animation animation)
Creates and answers an animation that is defined by repeating
the given animation. The result's duration is the
duration times repeatCount.
repeatCount
- the number of repetitionsanimation
- the animation to repeat
reverse
public static Animation reverse(Animation animation)
Creates and returns an animation that is defined by reverting
the given animation over the time.
animation
- the animation to reverse
sequential
public static Animation sequential(List animations)
Creates and returns a sequenced time container that is an animation,
that concatenates the given list of animations over the time.
animations
- a List
of animations
sequential
public static Animation sequential(Animation first,
Animation second)
Creates and returns an animation that is defined by concatenating
the two given animations.
first
- the first animation in the sequencesecond
- the second animation in the sequence
sequential
public 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.
animations
- an array of animations
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.