org.robokind.api.animation.editor
Enum EditState

java.lang.Object
  extended by java.lang.Enum<EditState>
      extended by org.robokind.api.animation.editor.EditState
All Implemented Interfaces:
Serializable, Comparable<EditState>

public enum EditState
extends Enum<EditState>

Author:
Matthew Stevenson

Enum Constant Summary
CHANGE
           
DISABLED
           
HOVER
           
LOCKED
           
SELECTED
           
VISIBLE
           
 
Method Summary
 Integer getFlag()
           
static List<String> getFlagNames(int flags)
           
static int getFlags(EditState... stats)
           
static List<EditState> getFlags(int flags)
           
static boolean hasFlag(int flags, EditState state)
           
static boolean isActionState(EditState state)
           
static int setFlag(int flags, EditState state)
           
static EditState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EditState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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. All Rights Reserved.