com.jgoodies.animation.animations
Class FanAnimation
- Animation
public final class FanAnimation
An animation that rotates a fan that consists of a set
of translucent sectors.
DEFAULT_ANTICLOCKWISE_ROTATION
public static final double DEFAULT_ANTICLOCKWISE_ROTATION
DEFAULT_CLOCKWISE_ROTATION
public static final double DEFAULT_CLOCKWISE_ROTATION
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.
fan
- the fan component animation targetduration
- the animation durationrotationFunction
- the rotation animation function
applyEffect
protected void applyEffect(long time)
Applies the effect: sets the time-based rotation.
- applyEffect in interface AbstractAnimation
defaultFan
public static FanAnimation defaultFan(FanComponent fan,
long duration)
Creates and answers the default fan animation.
fan
- the fan component animation targetduration
- the animation duration
defaultRotationFunction
public static AnimationFunction defaultRotationFunction(long duration)
Creates and answers an animation function for the default rotation.
duration
- the animation duration
- an animation function for the default rotation
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.