Enum PathSegmentType
- java.lang.Object
-
- java.lang.Enum<PathSegmentType>
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.content.PathSegmentType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PathSegmentType>
public enum PathSegmentType extends java.lang.Enum<PathSegmentType>
Used to distinguish between linear (line) and cubic (Bezier curve) path segments.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathSegmentType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PathSegmentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINEAR
public static final PathSegmentType LINEAR
A line segment from the current point to the end point.
-
CUBIC
public static final PathSegmentType CUBIC
A cubic Bezier curve segment (with two control points) from the current point to the end point.
-
-
Method Detail
-
values
public static PathSegmentType[] 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 (PathSegmentType c : PathSegmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathSegmentType 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
-
-