public enum AnimState extends Enum<AnimState>
Example:
final Animator animator = new AnimatorMock(); final Animation animation = new Animation(1, 2, 1.0, false, false); animator.getAnimState(); // returns STOPPED animator.play(animation); animator.update(extrp); animator.getAnimState(); // returns PLAYING
This class is Thread-Safe.
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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017 Byron 3D Games Studio. All rights reserved.