com.jgoodies.animation.animations
Class FanAnimation
java.lang.Object
com.jgoodies.animation.AbstractAnimation
com.jgoodies.animation.animations.FanAnimation
- All Implemented Interfaces:
- Animation
public final class FanAnimation
- extends AbstractAnimation
An animation that rotates a fan that consists of a set
of translucent sectors.
- Version:
- $Revision: 1.1 $
- Author:
- Karsten Lentzsch
- See Also:
FanComponent
,
FanRenderer
Constructor Summary |
FanAnimation(FanComponent fan,
long duration,
AnimationFunction rotationFunction)
Constructs an animation that rotates a fan using the given fan component,
duration and rotation animation function. |
DEFAULT_CLOCKWISE_ROTATION
public static final double DEFAULT_CLOCKWISE_ROTATION
- See Also:
- Constant Field Values
DEFAULT_ANTICLOCKWISE_ROTATION
public static final double DEFAULT_ANTICLOCKWISE_ROTATION
- See Also:
- Constant Field Values
FanAnimation
public FanAnimation(FanComponent fan,
long duration,
AnimationFunction rotationFunction)
- Constructs an animation that rotates a fan using the given fan component,
duration and rotation animation function.
- Parameters:
fan
- the fan component animation targetduration
- the animation durationrotationFunction
- the rotation animation function
defaultFan
public static FanAnimation defaultFan(FanComponent fan,
long duration)
- Creates and answers the default fan animation.
- Parameters:
fan
- the fan component animation targetduration
- the animation duration
- Returns:
- a default fan animation
defaultRotationFunction
public static AnimationFunction defaultRotationFunction(long duration)
- Creates and answers an animation function for the default rotation.
- Parameters:
duration
- the animation duration
- Returns:
- an animation function for the default rotation
applyEffect
protected void applyEffect(long time)
- Applies the effect: sets the time-based rotation.
- Specified by:
applyEffect
in class AbstractAnimation
- Parameters:
time
- the render time
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.