Enum Class DrawingMode
- All Implemented Interfaces:
Serializable
,Comparable<DrawingMode>
,Constable
Represents the drawing mode for a shape.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe first element requires two vertices, and each subsequent element requires one more vertex.Each element is made up of two vertices, forming a line.Each element requires four vertices, forming a quadrilateral.The first element requires three vertices forming the first triangle.The first element requires three vertices forming the first triangle.Each element requires three vertices, forming a triangle. -
Method Summary
Modifier and TypeMethodDescriptionstatic DrawingMode
Returns the enum constant of this class with the specified name.static DrawingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINES
Each element is made up of two vertices, forming a line. -
LINE_STRIP
The first element requires two vertices, and each subsequent element requires one more vertex. This forms a continuous line that bends at different places. -
TRIANGLES
Each element requires three vertices, forming a triangle. -
TRIANGLE_STRIP
The first element requires three vertices forming the first triangle. Each additional vertex forms a new triangle with the last two vertices. -
TRIANGLE_FAN
The first element requires three vertices forming the first triangle. Each additional vertex forms a new triangle with the first vertex and the last vertex. -
QUADRILATERALS
Each element requires four vertices, forming a quadrilateral.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-