public static class LafConstants.AnimationKind
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
LafConstants.AnimationKind(FadeStep step,
java.lang.String name)
Creates a new animation kind.
|
Modifier and Type | Method and Description |
---|---|
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. |
public static final LafConstants.AnimationKind NONE
public static final LafConstants.AnimationKind DEBUG_SLOW
public static final LafConstants.AnimationKind DEBUG
public static final LafConstants.AnimationKind DEBUG_FAST
public static final LafConstants.AnimationKind SLOW
public static final LafConstants.AnimationKind REGULAR
public static final LafConstants.AnimationKind FAST
public LafConstants.AnimationKind(FadeStep step, java.lang.String name)
step
- Animation increment step.name
- Animation kind name.public FadeStep getStep()
this
animation in seconds.this
animation in seconds.public java.lang.String getName()
this
animation.this
animation.public LafConstants.AnimationKind derive(float factor)
factor
- Derivation factor. Should be greater than zero.