public enum DrawMode extends Enum<DrawMode> implements IEnumWithValue
| Enum Constant and Description |
|---|
LINE_LOOP
Draws a straight line to the next vertex, and connects the last vertex back to the first.
|
LINE_STRIP
Draws a straight line to the next vertex.
|
LINES
Draws a line between a pair of vertices.
|
POINTS
Draws a single dot.
|
TRIANGLE_FAN
A series of connected triangles sharing the first vertex in fanlike fashion.
|
TRIANGLE_STRIP
A series of connected triangles in strip fashion.
|
TRIANGLES
Draws a triangle for a group of three vertices.
|
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
static DrawMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DrawMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOffromValue, transformForClientpublic static final DrawMode LINE_LOOP
public static final DrawMode LINE_STRIP
public static final DrawMode LINES
public static final DrawMode POINTS
public static final DrawMode TRIANGLE_FAN
public static final DrawMode TRIANGLE_STRIP
public static final DrawMode TRIANGLES
public static DrawMode[] values()
for (DrawMode c : DrawMode.values()) System.out.println(c);
public static DrawMode 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 nullpublic int value()
value in interface IEnumWithValueCopyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.