|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Hand.CardAlignment> ch.aplu.jcardgame.Hand.CardAlignment
public static 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 |
---|
public static final Hand.CardAlignment FIRST
public static final Hand.CardAlignment MIDDLE
public static final Hand.CardAlignment LAST
Method Detail |
---|
public static Hand.CardAlignment[] values()
for (Hand.CardAlignment c : Hand.CardAlignment.values()) System.out.println(c);
public static Hand.CardAlignment valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |