com.supermap.ar.areffect.preset
Enum BaseShape.Mode
- java.lang.Object
-
- java.lang.Enum<BaseShape.Mode>
-
- com.supermap.ar.areffect.preset.BaseShape.Mode
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BaseShape.Mode>
- Enclosing class:
- BaseShape
public static enum BaseShape.Mode extends java.lang.Enum<BaseShape.Mode>
Drawing mode TRIANGLE_FAN The first point and next two adjacent points compose a triangle. For example: ABC, ACD (two triangles needs 4 points) TRIANGLE_STRIP Three adjacent points compose a triangle excluding the first two points For example: ABC, BCD (two triangles needs 4 points) TRIANGLES Per three points compose a triangle For example: ABC, DEF (two triangles needs 6 points)
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description TRIANGLE_FAN
TRIANGLE_STRIP
TRIANGLES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static BaseShape.Mode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BaseShape.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRIANGLE_FAN
public static final BaseShape.Mode TRIANGLE_FAN
-
TRIANGLE_STRIP
public static final BaseShape.Mode TRIANGLE_STRIP
-
TRIANGLES
public static final BaseShape.Mode TRIANGLES
-
-
Method Detail
-
values
public static BaseShape.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BaseShape.Mode c : BaseShape.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseShape.Mode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-