public enum ShapeType extends Enum<ShapeType>
| Enum Constant and Description |
|---|
DIAMOND |
ELLIPSE |
HEXAGON |
OCTAGON |
PARALLELOGRAM |
RECTANGLE |
RECTANGLE3D |
ROUNDRECTANGLE |
TRAPEZOID |
TRAPEZOID2 |
TRIANGLE |
| Modifier and Type | Method and Description |
|---|---|
static ShapeType |
valueOf(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 RECTANGLE
public static final ShapeType RECTANGLE3D
public static final ShapeType TRIANGLE
public static final ShapeType ROUNDRECTANGLE
public static final ShapeType DIAMOND
public static final ShapeType OCTAGON
public static final ShapeType PARALLELOGRAM
public static final ShapeType HEXAGON
public static final ShapeType ELLIPSE
public static final ShapeType TRAPEZOID
public static final ShapeType TRAPEZOID2
public final String value
public static ShapeType[] values()
for (ShapeType c : ShapeType.values()) System.out.println(c);
public static ShapeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.