org.jtheque.core.utils.ui
Class AnimationUtils

java.lang.Object
  extended by org.jtheque.core.utils.ui.AnimationUtils

public final class AnimationUtils
extends java.lang.Object

An utility class for animation.

Author:
Baptiste Wicht

Method Summary
static org.jdesktop.animation.timing.Animator createFadeInAnimator(java.lang.Object view)
          Create a fade in animator for a view.
static org.jdesktop.animation.timing.Animator createFadeOutAnimator(java.lang.Object view)
          Create a Fade Out animator for the view.
static org.jdesktop.animation.timing.Animator createLoopEffect(java.lang.Object view, int duration, java.lang.String property, int to)
          Create a simple loop effect for the view.
static org.jdesktop.animation.timing.Animator createSpringEffectAnimator(java.lang.Object view)
          Create a spring effect animator for a view.
static void startFadeIn(java.lang.Object view)
          Fade in the view.
static void startFadeOut(java.lang.Object view)
          Fade out the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFadeOutAnimator

public static org.jdesktop.animation.timing.Animator createFadeOutAnimator(java.lang.Object view)
Create a Fade Out animator for the view.

Parameters:
view - The view to fade out.
Returns:
The animator.

createFadeInAnimator

public static org.jdesktop.animation.timing.Animator createFadeInAnimator(java.lang.Object view)
Create a fade in animator for a view.

Parameters:
view - The view to fade in.
Returns:
The animator.

createSpringEffectAnimator

public static org.jdesktop.animation.timing.Animator createSpringEffectAnimator(java.lang.Object view)
Create a spring effect animator for a view.

Parameters:
view - The view to animate.
Returns:
The animator.

createLoopEffect

public static org.jdesktop.animation.timing.Animator createLoopEffect(java.lang.Object view,
                                                                      int duration,
                                                                      java.lang.String property,
                                                                      int to)
Create a simple loop effect for the view.

Parameters:
view - The view to animate.
duration - The duration of the animation.
property - The property to loop.
to - The to value.
Returns:
The animator.

startFadeIn

public static void startFadeIn(java.lang.Object view)
Fade in the view.

Parameters:
view - The view to fade in.

startFadeOut

public static void startFadeOut(java.lang.Object view)
Fade out the view.

Parameters:
view - The view to fade out.


Copyright © 2009 JTheque. All Rights Reserved.