public enum DrawingMethod extends java.lang.Enum<DrawingMethod>
Enum Constant and Description |
---|
BEZIER |
FREEHAND |
RECTANGLE |
STRAIGHT_LINE |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
allToString() |
static DrawingMethod |
parse(java.lang.String s)
Accepts case-independent versions of string and underscores may be
represented by spaces.
|
java.lang.String |
toString() |
static DrawingMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DrawingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DrawingMethod FREEHAND
public static final DrawingMethod STRAIGHT_LINE
public static final DrawingMethod RECTANGLE
public static final DrawingMethod BEZIER
public static DrawingMethod[] values()
for (DrawingMethod c : DrawingMethod.values()) System.out.println(c);
public static DrawingMethod 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 java.lang.String toString()
toString
in class java.lang.Enum<DrawingMethod>
public static java.lang.String[] allToString()
public static DrawingMethod parse(java.lang.String s)