org.jvnet.lafwidget.animation
Interface FadeStep

All Known Implementing Classes:
FadeAccelerationStep, FadeConstantStep, FadeDecelerationStep

public interface FadeStep

Interface for computing the step for a fade cycle. Implement this interface to allow non-linear animations.

Author:
Kirill Grouchnikov

Method Summary
 float getNextStep(FadeKind fadeKind, float currFadePosition, boolean isFadeIn, boolean isLooping)
          Returns the next fade cycle step.
 

Method Detail

getNextStep

float getNextStep(FadeKind fadeKind,
                  float currFadePosition,
                  boolean isFadeIn,
                  boolean isLooping)
Returns the next fade cycle step.

Parameters:
fadeKind - Fade kind.
currFadePosition - Current fade position - guaranteed to be in 0.0-1.0 range.
isFadeIn - If true, the current fade cycle is fading in.
isLooping - If true, the fade is looping.
Returns:
The next fade cycle step.