public static enum TiledObject.Shape extends Enum<TiledObject.Shape>
Represents a shape that a Tiled object can take, such as an ellipse or polygon.
Enum Constant and Description |
---|
ELLIPSE |
POINT |
POLYGON |
POLYLINE |
RECTANGLE |
TEXT |
Modifier and Type | Method and Description |
---|---|
static TiledObject.Shape |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TiledObject.Shape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TiledObject.Shape ELLIPSE
public static final TiledObject.Shape POINT
public static final TiledObject.Shape POLYGON
public static final TiledObject.Shape POLYLINE
public static final TiledObject.Shape RECTANGLE
public static final TiledObject.Shape TEXT
public static TiledObject.Shape[] values()
for (TiledObject.Shape c : TiledObject.Shape.values()) System.out.println(c);
public static TiledObject.Shape 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 © 2020. All rights reserved.