org.jvnet.lafwidget.animation
Interface FadeTrackerCallback

All Known Implementing Classes:
FadeTrackerAdapter, UIThreadFadeTrackerAdapter

public interface FadeTrackerCallback

Callback for the fade tracker. Is used when the application (some UI delegate) wishes to execute some code on the fade.

Author:
Kirill Grouchnikov

Method Summary
 void fadeEnded(FadeKind fadeKind)
          Indicates that the fade sequence has ended.
 void fadePerformed(FadeKind fadeKind, float fadeCycle)
          Indicates that a single cycle of fade has been performed.
 void fadeReversed(FadeKind fadeKind, boolean isFadingIn, float fadeCycle)
          Indicates that the fade sequence has been reversed.
 

Method Detail

fadePerformed

void fadePerformed(FadeKind fadeKind,
                   float fadeCycle)
Indicates that a single cycle of fade has been performed. Can be used in order to repaint specific portion of the component.

Parameters:
fadeKind - Fade animation kind.
fadeCycle - The current fade cycle. Is guaranteed to be in 0.0-1.0 range.

fadeEnded

void fadeEnded(FadeKind fadeKind)
Indicates that the fade sequence has ended. Can be used in order to repaint specific portion of the component.

Parameters:
fadeKind - Fade animation kind.

fadeReversed

void fadeReversed(FadeKind fadeKind,
                  boolean isFadingIn,
                  float fadeCycle)
Indicates that the fade sequence has been reversed. This can happen, for example, when the user moves the mouse over a button (rollover fade) and then quickly moves the mouse out. In this case, the fade sequence is reverted halfway.

Parameters:
fadeKind - Fade animation kind.
isFadingIn - Indicates the new direction of fade.
fadeCycle - Indicates the new value of fade cycle.