Enum Constant and Description |
---|
CIRCLE |
CROSS |
DCROSS |
DEFAULT |
DIAMOND |
DOWNTRIANGLE |
LEVEL |
LINECROSS |
SQUARE |
TRIANGLE |
VLEVEL |
Modifier and Type | Method and Description |
---|---|
static ShapeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShapeType SQUARE
public static final ShapeType CIRCLE
public static final ShapeType TRIANGLE
public static final ShapeType DIAMOND
public static final ShapeType DCROSS
public static final ShapeType DOWNTRIANGLE
public static final ShapeType CROSS
public static final ShapeType DEFAULT
public static final ShapeType LEVEL
public static final ShapeType VLEVEL
public static final ShapeType LINECROSS
public static ShapeType[] values()
for (ShapeType c : ShapeType.values()) System.out.println(c);
public static ShapeType 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 namejava.lang.NullPointerException
- if the argument is null