ch.aplu.jcardgame
Enum Hand.CardAlignment

java.lang.Object
  extended by java.lang.Enum<Hand.CardAlignment>
      extended by ch.aplu.jcardgame.Hand.CardAlignment
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Hand.CardAlignment>
Enclosing class:
Hand

public static enum Hand.CardAlignment
extends java.lang.Enum<Hand.CardAlignment>

Card alignment used when hand is drawn using drawRow(), drawColumn()


Enum Constant Summary
FIRST
          Align hand to the first card in the card list.
LAST
          Align hand to the last card in the card list.
MIDDLE
          Align hand to the middle card in the card list.
 
Method Summary
static Hand.CardAlignment valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Hand.CardAlignment[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FIRST

public static final Hand.CardAlignment FIRST
Align hand to the first card in the card list.


MIDDLE

public static final Hand.CardAlignment MIDDLE
Align hand to the middle card in the card list.


LAST

public static final Hand.CardAlignment LAST
Align hand to the last card in the card list.

Method Detail

values

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

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

valueOf

public static Hand.CardAlignment 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