org.robokind.api.animation.editor
Enum EditState
java.lang.Object
java.lang.Enum<EditState>
org.robokind.api.animation.editor.EditState
- All Implemented Interfaces:
- Serializable, Comparable<EditState>
public enum EditState
- extends Enum<EditState>
- Author:
- Matthew Stevenson
VISIBLE
public static final EditState VISIBLE
HOVER
public static final EditState HOVER
SELECTED
public static final EditState SELECTED
LOCKED
public static final EditState LOCKED
DISABLED
public static final EditState DISABLED
CHANGE
public static final EditState CHANGE
values
public static EditState[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (EditState c : EditState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EditState valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getFlag
public Integer getFlag()
- Returns:
getFlags
public static int getFlags(EditState... stats)
- Parameters:
stats
-
- Returns:
getFlags
public static List<EditState> getFlags(int flags)
- Parameters:
flags
-
- Returns:
getFlagNames
public static List<String> getFlagNames(int flags)
- Parameters:
flags
-
- Returns:
hasFlag
public static boolean hasFlag(int flags,
EditState state)
- Parameters:
flags
- state
-
- Returns:
setFlag
public static int setFlag(int flags,
EditState state)
- Parameters:
flags
- state
-
- Returns:
isActionState
public static boolean isActionState(EditState state)
- Parameters:
state
-
- Returns:
Copyright © 2011-2013. All Rights Reserved.