public static enum TestDraw.MODE extends Enum<TestDraw.MODE>
| Enum Constant and Description |
|---|
LINES
Draw lines for each pair of points.
|
POINTS
Draw each point.
|
RECTANGLES
Draw rectangles for each pair of points.
|
| Modifier and Type | Method and Description |
|---|---|
static TestDraw.MODE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestDraw.MODE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestDraw.MODE POINTS
public static final TestDraw.MODE LINES
public static final TestDraw.MODE RECTANGLES
public static TestDraw.MODE[] values()
for (TestDraw.MODE c : TestDraw.MODE.values()) System.out.println(c);
public static TestDraw.MODE 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 © 2018. All rights reserved.