public static enum Draw.EnumDrawType extends java.lang.Enum<Draw.EnumDrawType>
Enum Constant and Description |
---|
ARC |
ARROW |
CIRCLE |
CIRCULARPLANE |
CURVE |
CYLINDER |
LINE |
LINE_SEGMENT |
MULTIPLE |
NONE |
PLANE |
POINT |
POLYGON |
Modifier and Type | Field and Description |
---|---|
(package private) int |
id |
(package private) java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static Draw.EnumDrawType |
getType(int nPoints) |
static Draw.EnumDrawType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Draw.EnumDrawType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Draw.EnumDrawType MULTIPLE
public static final Draw.EnumDrawType NONE
public static final Draw.EnumDrawType POINT
public static final Draw.EnumDrawType LINE
public static final Draw.EnumDrawType PLANE
public static final Draw.EnumDrawType CYLINDER
public static final Draw.EnumDrawType ARROW
public static final Draw.EnumDrawType CIRCLE
public static final Draw.EnumDrawType CURVE
public static final Draw.EnumDrawType CIRCULARPLANE
public static final Draw.EnumDrawType ARC
public static final Draw.EnumDrawType LINE_SEGMENT
public static final Draw.EnumDrawType POLYGON
public static Draw.EnumDrawType[] values()
for (Draw.EnumDrawType c : Draw.EnumDrawType.values()) System.out.println(c);
public static Draw.EnumDrawType 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 static Draw.EnumDrawType getType(int nPoints)