org.jvnet.lafwidget.animation
Interface GlobalFadeTrackerCallback


public interface GlobalFadeTrackerCallback

Global callback for the fade tracker. Is used when the application wishes to execute some code on the fade.

Author:
Kirill Grouchnikov

Method Summary
 void fadeEnded(java.awt.Component comp, java.lang.Comparable<?> subID, FadeKind fadeKind)
          Indicates that the fade sequence has ended.
 void fadePerformed(java.awt.Component comp, java.lang.Comparable<?> subID, FadeKind fadeKind, float fadeCycle)
          Indicates that a single cycle of fade has been performed.
 void fadeReversed(java.awt.Component comp, java.lang.Comparable<?> subID, FadeKind fadeKind, boolean isFadingIn, float fadeCycle)
          Indicates that the fade sequence has been reversed.
 void fadeStarted(java.awt.Component comp, java.lang.Comparable<?> subID, FadeKind fadeKind, float initialFadeCycle)
          Indicates that the fade sequence has started.
 

Method Detail

fadePerformed

void fadePerformed(java.awt.Component comp,
                   java.lang.Comparable<?> subID,
                   FadeKind fadeKind,
                   float fadeCycle)
Indicates that a single cycle of fade has been performed.

Parameters:
comp - Component for the fade event.
subID - Optional ID of the subcomponent of the fade event. May be null. Is non-null when fade events can happen on different visual areas of the same top-level component. For example, each tab in a tabbed pane has its own fade sequence for rollovers.
fadeKind - Fade animation kind.
fadeCycle - The current fade cycle. Is guaranteed to be in 0.0-1.0 range.

fadeStarted

void fadeStarted(java.awt.Component comp,
                 java.lang.Comparable<?> subID,
                 FadeKind fadeKind,
                 float initialFadeCycle)
Indicates that the fade sequence has started.

Parameters:
comp - Component for the fade event.
subID - Optional ID of the subcomponent of the fade event. May be null. Is non-null when fade events can happen on different visual areas of the same top-level component. For example, each tab in a tabbed pane has its own fade sequence for rollovers.
fadeKind - Fade animation kind.
initialFadeCycle - The initial value for the fade cycle. Will be in 0.0-1.0 range.

fadeEnded

void fadeEnded(java.awt.Component comp,
               java.lang.Comparable<?> subID,
               FadeKind fadeKind)
Indicates that the fade sequence has ended.

Parameters:
comp - Component for the fade event.
subID - Optional ID of the subcomponent of the fade event. May be null. Is non-null when fade events can happen on different visual areas of the same top-level component. For example, each tab in a tabbed pane has its own fade sequence for rollovers.
fadeKind - Fade animation kind.

fadeReversed

void fadeReversed(java.awt.Component comp,
                  java.lang.Comparable<?> subID,
                  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:
comp - Component for the fade event.
subID - Optional ID of the subcomponent of the fade event. May be null. Is non-null when fade events can happen on different visual areas of the same top-level component. For example, each tab in a tabbed pane has its own fade sequence for rollovers.
fadeKind - Fade animation kind.
isFadingIn - Indicates the new direction of fade.
fadeCycle - Indicates the new value of fade cycle. Will be in 0.0-1.0 range.