org.jvnet.lafwidget.utils
Class LafConstants.AnimationKind

java.lang.Object
  extended by org.jvnet.lafwidget.utils.LafConstants.AnimationKind
Enclosing class:
LafConstants

public static class LafConstants.AnimationKind
extends java.lang.Object

Animation kind.


Field Summary
static LafConstants.AnimationKind DEBUG
          Animation for debug purposes (ultra-slow).
static LafConstants.AnimationKind DEBUG_FAST
          Animation for debug purposes (slow).
static LafConstants.AnimationKind DEBUG_SLOW
          Animation for debug purposes (extremely-slow).
static LafConstants.AnimationKind FAST
          Fast animation.
static LafConstants.AnimationKind NONE
          No animation.
static LafConstants.AnimationKind REGULAR
          Regular (default) animation.
static LafConstants.AnimationKind SLOW
          Slow animation.
 
Constructor Summary
LafConstants.AnimationKind(FadeStep step, java.lang.String name)
          Creates a new animation kind.
 
Method Summary
 LafConstants.AnimationKind derive(float factor)
          Creates a derived (accelerated or decelerated) animation kind.
 java.lang.String getName()
          Returns the name of this animation.
 FadeStep getStep()
          Returns the step of this animation in seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static LafConstants.AnimationKind NONE
No animation.


DEBUG_SLOW

public static LafConstants.AnimationKind DEBUG_SLOW
Animation for debug purposes (extremely-slow).


DEBUG

public static LafConstants.AnimationKind DEBUG
Animation for debug purposes (ultra-slow).


DEBUG_FAST

public static LafConstants.AnimationKind DEBUG_FAST
Animation for debug purposes (slow).


SLOW

public static LafConstants.AnimationKind SLOW
Slow animation.


REGULAR

public static LafConstants.AnimationKind REGULAR
Regular (default) animation.


FAST

public static LafConstants.AnimationKind FAST
Fast animation.

Constructor Detail

LafConstants.AnimationKind

public LafConstants.AnimationKind(FadeStep step,
                                  java.lang.String name)
Creates a new animation kind.

Parameters:
step - Animation increment step.
name - Animation kind name.
Method Detail

getStep

public FadeStep getStep()
Returns the step of this animation in seconds.

Returns:
Step of this animation in seconds.

getName

public java.lang.String getName()
Returns the name of this animation.

Returns:
Name of this animation.

derive

public LafConstants.AnimationKind derive(float factor)
Creates a derived (accelerated or decelerated) animation kind.

Parameters:
factor - Derivation factor. Should be greater than zero.
Returns:
Derived animation kind.