public enum AnimState extends java.lang.Enum<AnimState>
Example:
final Animator animator = Anim.createAnimator(); final Animation animation = Anim.createAnimation(1, 2, 1.0, false, false); animator.getAnimState(); // returns STOPPED animator.play(animation); animator.updateAnimation(extrp); animator.getAnimState(); // returns PLAYING
Enum Constant and Description |
---|
FINISHED
Animation is finished (cannot exist in loop case).
|
PLAYING
Animation is currently animating.
|
REVERSING
Animation is currently playing in reverse.
|
STOPPED
Animation is stopped (default state).
|
Modifier and Type | Method and Description |
---|---|
static AnimState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnimState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnimState STOPPED
public static final AnimState PLAYING
public static final AnimState REVERSING
public static final AnimState FINISHED
public static AnimState[] values()
for (AnimState c : AnimState.values()) System.out.println(c);
public static AnimState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null