Package com.jogamp.graph.geom.plane
Enum Path2F.SegmentType
- java.lang.Object
-
- java.lang.Enum<Path2F.SegmentType>
-
- com.jogamp.graph.geom.plane.Path2F.SegmentType
-
- All Implemented Interfaces:
Serializable
,Comparable<Path2F.SegmentType>
- Enclosing class:
- Path2F
public static enum Path2F.SegmentType extends Enum<Path2F.SegmentType>
A Path2D segment type
-
-
Field Summary
Fields Modifier and Type Field Description int
point_count
Number of points associated with this segment type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getPointCount(int type)
Return the number of points associated with the integer segment typebyte
integer()
Return the integer segment type value as a bytestatic Path2F.SegmentType
valueOf(int type)
Return the SegmentType associated with the integer segment typestatic Path2F.SegmentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Path2F.SegmentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVETO
public static final Path2F.SegmentType MOVETO
-
LINETO
public static final Path2F.SegmentType LINETO
-
QUADTO
public static final Path2F.SegmentType QUADTO
-
CUBICTO
public static final Path2F.SegmentType CUBICTO
-
CLOSE
public static final Path2F.SegmentType CLOSE
-
-
Method Detail
-
values
public static Path2F.SegmentType[] 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 (Path2F.SegmentType c : Path2F.SegmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Path2F.SegmentType 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
-
integer
public byte integer()
Return the integer segment type value as a byte
-
valueOf
public static Path2F.SegmentType valueOf(int type)
Return the SegmentType associated with the integer segment type
-
getPointCount
public static int getPointCount(int type)
Return the number of points associated with the integer segment type
-
-