org.jvnet.lafwidget.animation
Class FadeTrackerAdapter

java.lang.Object
  extended by org.jvnet.lafwidget.animation.FadeTrackerAdapter
All Implemented Interfaces:
FadeTrackerCallback
Direct Known Subclasses:
EDTFadeTrackerAdapter

public class FadeTrackerAdapter
extends java.lang.Object
implements FadeTrackerCallback

Default implementation of FadeTrackerCallback that does nothing.

Author:
Kirill Grouchnikov

Constructor Summary
FadeTrackerAdapter()
           
 
Method Summary
 void fadeEnded(FadeKind fadeKind)
          Indicates that the fade sequence has ended.
 void fadePerformed(FadeKind fadeKind, float fadeCycle10)
          Indicates that a single cycle of fade has been performed.
 void fadeReversed(FadeKind fadeKind, boolean isFadingIn, float fadeCycle10)
          Indicates that the fade sequence has been reversed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FadeTrackerAdapter

public FadeTrackerAdapter()
Method Detail

fadeEnded

public void fadeEnded(FadeKind fadeKind)
Description copied from interface: FadeTrackerCallback
Indicates that the fade sequence has ended. Can be used in order to repaint specific portion of the component.

Specified by:
fadeEnded in interface FadeTrackerCallback
Parameters:
fadeKind - Fade animation kind.

fadePerformed

public void fadePerformed(FadeKind fadeKind,
                          float fadeCycle10)
Description copied from interface: FadeTrackerCallback
Indicates that a single cycle of fade has been performed. Can be used in order to repaint specific portion of the component.

Specified by:
fadePerformed in interface FadeTrackerCallback
Parameters:
fadeKind - Fade animation kind.
fadeCycle10 - The current fade cycle. Is guaranteed to be in 0.0-10.0 range.

fadeReversed

public void fadeReversed(FadeKind fadeKind,
                         boolean isFadingIn,
                         float fadeCycle10)
Description copied from interface: FadeTrackerCallback
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.

Specified by:
fadeReversed in interface FadeTrackerCallback
Parameters:
fadeKind - Fade animation kind.
isFadingIn - Indicates the new direction of fade.
fadeCycle10 - Indicates the new value of fade cycle.