- All Implemented Interfaces:
Serializable
,Comparable<SplinePathBuilder.CPointType>
- Enclosing class:
- SplinePathBuilder
Type of a point along a path.
This is used in a constructor for the class
SplinePathBuilder.CPoint
.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe path is to be closed.This defines a control point for a Bézier curve.Move to a new location.Move to a new location at the start of the next sequence of points, which must be specified by a SPLINE or SPLINE_FUNCTION.This ends a Bézier curve segment or a spline segment.This indicates that the next CPoint terminates the current segment.This indicates that the final coordinate given by a SPLINE_FUNCTION point or a sequence of SPLINE points represents a SEG_END.This defines a point along a spline.A sequence of n segments are added, with the the points at the ends of the segments defined by functions giving the x and y coordinates of those n points, and the starting and ending values of the argument passed to the functions. -
Method Summary
Modifier and TypeMethodDescriptionstatic SplinePathBuilder.CPointType
Returns the enum constant of this type with the specified name.static SplinePathBuilder.CPointType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MOVE_TO
Move to a new location. This defines the start of a path or the start of a part of a possibly discontinuous curve. -
MOVE_TO_NEXT
Move to a new location at the start of the next sequence of points, which must be specified by a SPLINE or SPLINE_FUNCTION. This defines the start of a path or the start of a part of a discontinuous curve. -
CONTROL
This defines a control point for a Bézier curve. There may be one or two control points in a row, and a control point must be followed bySEG_END
. -
SPLINE
This defines a point along a spline. -
SPLINE_FUNCTION
A sequence of n segments are added, with the the points at the ends of the segments defined by functions giving the x and y coordinates of those n points, and the starting and ending values of the argument passed to the functions. -
SEG_END_PREV
This indicates that the final coordinate given by a SPLINE_FUNCTION point or a sequence of SPLINE points represents a SEG_END. If there are two consecutive splines, the derivatives may be discontinuous at a SEG_END_PREV point. -
SEG_END
This ends a Bézier curve segment or a spline segment. If there are two consecutive splines, the derivatives may be discontinuous at a SEG_END point. -
SEG_END_NEXT
This indicates that the next CPoint terminates the current segment. The next CPoint's type must be a SPLINE_FUNCTION or SPLINE point. It is useful primarily when the next CPoint's is a SPLINE_FUNCTION. -
CLOSE
The path is to be closed. If the previous CPoint has a type equal to SEG_END, the path will consist of a line (perhaps of zero length) going to the position of the last MOVE_TO point along the path. If the previous CPoint has a type equal to SPLINE, a cyclic spline will be generated.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-