# Package org.jdesktop.animation.timing.interpolation

package org.jdesktop.animation.timing.interpolation
Provides a mechanism for animating object properties between different values.

This package provides classes for defining object properties to animate, via the PropertySetter class. KeyFrames encapsulates the definition of the times (using KeyTimes) and values (using KeyValues) to interpolate between, as well as the type of interpolation to use between these values. Interpolator is an interface that is implemented by DiscreteInterpolator, LinearInterpolator, and SplineInterpolator for built-in interpolations, but applications can define their own custom interpolation as well.

Related Packages
Package
Description
org.jdesktop.animation.timing
Core classes of the Timing Framework; these classes provide the base functionality that all animations will use.
org.jdesktop.animation.timing.triggers
Provides simple mechanism for starting Animators when specific events occur.
Class
Description
DiscreteInterpolator
This class implements the Interpolator interface.
Evaluator<T>
This class is used by KeyValues to calculate intermediate values for specific types.
Interpolator
Interface that defines the single `Interpolator.interpolate(float)` method.
KeyFrames
KeyFrames holds information about the times at which values are sampled (KeyTimes) and the values at those times (KeyValues).
KeyTimes
Stores a list of times from 0 to 1 (the elapsed fraction of an animation cycle) that are used in calculating interpolated values for PropertySetter given a matching set of KeyValues and Interpolators for those time intervals.
KeyValues<T>
Stores a list of values that correspond to the times in a `KeyTimes` object.
LinearInterpolator
This class implements the Interpolator interface by providing a simple interpolate function that simply returns the value that it was given.
PropertySetter
This class enables automating animation of object properties.
SplineInterpolator
This class interpolates fractional values using Bezier splines.