Package | Description |
---|---|
com.jgoodies.animation |
Contains the core types of the JGoodies Animation library.
|
com.jgoodies.animation.renderer |
Contains prepared animation renderers.
|
com.jgoodies.animation.swing.animations |
Contains a bunch of prepared animations and animation factories.
|
com.jgoodies.animation.swing.components |
Consists of a bunch of prepared animated components.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAnimationFunction<T>
An abstract class that minimizes the effort required to implement
the
AnimationFunction interface. |
Modifier and Type | Field and Description |
---|---|
static AnimationFunction<Float> |
AnimationFunctions.ONE
A constant
AnimationFunction that returns
1f all the time. |
static AnimationFunction<Float> |
AnimationFunctions.ZERO
A constant
AnimationFunction that returns
0f all the time. |
Modifier and Type | Method and Description |
---|---|
static AnimationFunction<Color> |
AnimationFunctions.alphaColor(AnimationFunction<Integer> f,
Color baseColor)
Creates and returns an animation function that returns time-based
sRGB colors that are built from a given base color and
an animation function of alpha values.
|
static <T> AnimationFunction<T> |
AnimationFunctions.concat(AnimationFunction<T>... functions)
Concatenates the given animation functions and returns a compound
animation function that represents the concatenation.
|
static <T> AnimationFunction<T> |
AnimationFunctions.constant(long duration,
T value)
Creates and returns an animation function that returns a constant value
over the given duration.
|
static <T> AnimationFunction<T> |
AnimationFunctions.discrete(long duration,
T... values)
Creates and returns a discrete animation function for the
given duration and values.
|
static <T> AnimationFunction<T> |
AnimationFunctions.discrete(long duration,
T[] values,
float[] keyTimes)
Creates and returns a discrete animation function for the given duration,
values and interpolation key times.
|
static AnimationFunction<Float> |
AnimationFunctions.fromBy(long duration,
float from,
float by)
Creates and returns a linear animation function for the given duration
that returns Float in interval [from, from + by].
|
static AnimationFunction<Float> |
AnimationFunctions.fromTo(long duration,
float from,
float to)
Creates and returns a linear animation function with the given duration.
|
static <T extends Number> |
AnimationFunctions.linear(long duration,
T[] values)
Creates and returns a linear animation function that is defined
by an array of numeric values; these are distributed equally
over the duration.
|
static <T extends Number> |
AnimationFunctions.linear(long duration,
T[] values,
float[] keyTimes)
Creates and returns a linear animation function that is defined
by an array of numeric values and an array of relative key times.
|
static AnimationFunction<Color> |
AnimationFunctions.linearColors(long duration,
Color[] colors,
float[] keyTimes)
Creates an
AnimationFunction that maps times
to instances of Color . |
static AnimationFunction<Integer> |
AnimationFunctions.random(int min,
int max,
float changeProbability)
Creates and returns an animation function that returns random values
from the interval [min, max] with a given change probability.
|
static <T> AnimationFunction<T> |
AnimationFunctions.repeat(AnimationFunction<T> f,
long repeatTime)
Creates and returns an animation function that is defined
by repeating the specified animation function.
|
static <T> AnimationFunction<T> |
AnimationFunctions.reverse(AnimationFunction<T> f)
Creates and returns an animation function that is defined
by reverting the given animation function in time.
|
Modifier and Type | Method and Description |
---|---|
static AnimationFunction<Color> |
AnimationFunctions.alphaColor(AnimationFunction<Integer> f,
Color baseColor)
Creates and returns an animation function that returns time-based
sRGB colors that are built from a given base color and
an animation function of alpha values.
|
static <T> AnimationFunction<T> |
AnimationFunctions.concat(AnimationFunction<T>... functions)
Concatenates the given animation functions and returns a compound
animation function that represents the concatenation.
|
static <T> AnimationFunction<T> |
AnimationFunctions.repeat(AnimationFunction<T> f,
long repeatTime)
Creates and returns an animation function that is defined
by repeating the specified animation function.
|
static <T> AnimationFunction<T> |
AnimationFunctions.reverse(AnimationFunction<T> f)
Creates and returns an animation function that is defined
by reverting the given animation function in time.
|
Constructor and Description |
---|
GlyphRenderer(String text,
AnimationFunction<Float> scaleFunction,
AnimationFunction<Float> translateFunction,
AnimationFunction<Color> colorFunction,
long glyphDelay)
Constructs a
GlyphRenderer that paints
individual glyphs with different transforms. |
GlyphRenderer(String text,
AnimationFunction<Float> scaleFunction,
AnimationFunction<Float> translateFunction,
AnimationFunction<Color> colorFunction,
long glyphDelay)
Constructs a
GlyphRenderer that paints
individual glyphs with different transforms. |
GlyphRenderer(String text,
AnimationFunction<Float> scaleFunction,
AnimationFunction<Float> translateFunction,
AnimationFunction<Color> colorFunction,
long glyphDelay)
Constructs a
GlyphRenderer that paints
individual glyphs with different transforms. |
Modifier and Type | Method and Description |
---|---|
static AnimationFunction<Color> |
BasicTextAnimation.cinemaFadeColorFunction(long duration,
Color baseColor)
Creates and returns the color animation function for the default fade.
|
static AnimationFunction<Color> |
BasicTextAnimation.defaultFadeColorFunction(long duration,
Color baseColor)
Creates and returns the color animation function for the default fade.
|
static AnimationFunction<Integer> |
BasicTextAnimation.defaultOffsetFunction()
Returns the animation function for the default random position offset.
|
static AnimationFunction<Float> |
FanAnimation.defaultRotationFunction(long duration)
Creates and answers an animation function for the default rotation.
|
static AnimationFunction<Color> |
BasicTextAnimation.defaultScaleColorFunction(long duration,
Color baseColor)
Creates and returns the animation function for the default scaling.
|
static AnimationFunction<Float> |
BasicTextAnimation.defaultScaleFunction(long duration)
Creates and returns the default scaling animation function.
|
static AnimationFunction<Color> |
BasicTextAnimation.defaultSpaceColorFunction(long duration,
Color baseColor)
Creates and answers the color animation function for
the default spacing animation.
|
static AnimationFunction<Float> |
BasicTextAnimation.defaultSpaceFunction(long duration)
Creates and returns the default spacing animation function.
|
Constructor and Description |
---|
BasicTextAnimation(BasicTextLabel label,
long duration,
String text,
AnimationFunction<Color> colorFunction,
AnimationFunction<Float> scaleXFunction,
AnimationFunction<Float> scaleYFunction,
AnimationFunction<Float> spaceFunction)
Constructs a text animation that fades in a text, scales it and
fades it out.
|
BasicTextAnimation(BasicTextLabel label,
long duration,
String text,
AnimationFunction<Color> colorFunction,
AnimationFunction<Float> scaleXFunction,
AnimationFunction<Float> scaleYFunction,
AnimationFunction<Float> spaceFunction)
Constructs a text animation that fades in a text, scales it and
fades it out.
|
BasicTextAnimation(BasicTextLabel label,
long duration,
String text,
AnimationFunction<Color> colorFunction,
AnimationFunction<Float> scaleXFunction,
AnimationFunction<Float> scaleYFunction,
AnimationFunction<Float> spaceFunction)
Constructs a text animation that fades in a text, scales it and
fades it out.
|
BasicTextAnimation(BasicTextLabel label,
long duration,
String text,
AnimationFunction<Color> colorFunction,
AnimationFunction<Float> scaleXFunction,
AnimationFunction<Float> scaleYFunction,
AnimationFunction<Float> spaceFunction)
Constructs a text animation that fades in a text, scales it and
fades it out.
|
FanAnimation(FanComponent fan,
long duration,
AnimationFunction<Float> rotationFunction)
Constructs an animation that rotates a fan using the given fan component,
duration and rotation animation function.
|
Modifier and Type | Method and Description |
---|---|
static AnimationFunction<Color> |
GlyphLabel.defaultColorFunction(long duration,
Color baseColor)
Creates and returns the default color function for the given duration
and base color.
|
static AnimationFunction<Float> |
GlyphLabel.defaultScaleFunction(long duration)
Creates and returns the default scale function for the given duration.
|
Copyright © 2001-2011 JGoodies Karsten Lentzsch. All Rights Reserved.