- java.lang.Object
-
- java.lang.Enum<PathElementType>
-
- org.arakhne.afc.math.geometry.PathElementType
-
- All Implemented Interfaces:
Serializable
,Comparable<PathElementType>
public enum PathElementType extends Enum<PathElementType>
Type of a path element.- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathElementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PathElementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVE_TO
public static final PathElementType MOVE_TO
Move to the next point.
-
LINE_TO
public static final PathElementType LINE_TO
Line to the next point.
-
QUAD_TO
public static final PathElementType QUAD_TO
Quadratic curve to the next point.
-
CURVE_TO
public static final PathElementType CURVE_TO
Cubic curve to the next point.
-
ARC_TO
public static final PathElementType ARC_TO
Arc to the next point.Arc-to is a sub-type of
CURVE_TO
-
CLOSE
public static final PathElementType CLOSE
Close the path.
-
-
Method Detail
-
values
public static PathElementType[] 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 (PathElementType c : PathElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathElementType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-