com.alee.examples.groups.desktoppane.tetris
Enum FigureType

java.lang.Object
  extended by java.lang.Enum<FigureType>
      extended by com.alee.examples.groups.desktoppane.tetris.FigureType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FigureType>

public enum FigureType
extends java.lang.Enum<FigureType>

User: mgarin Date: 02.06.11 Time: 17:10


Enum Constant Summary
block
           
blockL
           
blockR
           
line
           
lineL
           
lineR
           
trident
           
 
Method Summary
static FigureType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FigureType[] 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

trident

public static final FigureType trident

line

public static final FigureType line

lineR

public static final FigureType lineR

lineL

public static final FigureType lineL

block

public static final FigureType block

blockR

public static final FigureType blockR

blockL

public static final FigureType blockL
Method Detail

values

public static FigureType[] 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 (FigureType c : FigureType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FigureType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null