public static enum VisualShape.VisualShapeType extends java.lang.Enum<VisualShape.VisualShapeType>
Enum Constant and Description |
---|
CIRCLE
Cricle bounding area.
|
POLYGON
Polygon bounding area.
|
RECTANGLE
Rectangle bounding box.
|
TRIANGLE
Triangle bounding area.
|
Modifier and Type | Method and Description |
---|---|
static VisualShape.VisualShapeType |
fromShapeTypeId(int shapeType) |
int |
toShapeTypeId() |
static VisualShape.VisualShapeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VisualShape.VisualShapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VisualShape.VisualShapeType RECTANGLE
public static final VisualShape.VisualShapeType TRIANGLE
public static final VisualShape.VisualShapeType CIRCLE
public static final VisualShape.VisualShapeType POLYGON
public static VisualShape.VisualShapeType[] values()
for (VisualShape.VisualShapeType c : VisualShape.VisualShapeType.values()) System.out.println(c);
public static VisualShape.VisualShapeType 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 nullpublic final int toShapeTypeId()
public static VisualShape.VisualShapeType fromShapeTypeId(int shapeType) throws java.lang.IllegalArgumentException
shapeType
- java.lang.IllegalArgumentException
- on bad inputCopyright © 2015 Tampere University of Technology, Pori Department.