public enum LineCreationMode extends Enum<LineCreationMode>
Line
creation mode.
Allows to restrict how a line is constructed based on input events.
Enum Constant and Description |
---|
Automatic
Automatic mode (default), in which either of click or freehand mode is automatically selected based on input events.
|
Click
Click mode, in which each point of a line is created upon touch tap or mouse click.
|
Freehand
Freehand mode, in which all points of a line are created in sequence during a drag gesture.
|
Modifier and Type | Method and Description |
---|---|
static LineCreationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineCreationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineCreationMode Automatic
public static final LineCreationMode Click
public static final LineCreationMode Freehand
public static LineCreationMode[] values()
for (LineCreationMode c : LineCreationMode.values()) System.out.println(c);
public static LineCreationMode 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