public static enum Shape.ShapeType extends Enum<Shape.ShapeType>
| Enum Constant and Description |
|---|
Polygon
Polygon type
|
Polyline
Polyline type
|
| Modifier and Type | Method and Description |
|---|---|
static Shape.ShapeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Shape.ShapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Shape.ShapeType Polygon
public static final Shape.ShapeType Polyline
public static Shape.ShapeType[] values()
for (Shape.ShapeType c : Shape.ShapeType.values()) System.out.println(c);
public static Shape.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 null