- All Implemented Interfaces:
Serializable
,Comparable<BSpline.Mode>
- Enclosing class:
- BSpline
Modes for creating a B-spline from a set of data points.
The enumeration constants determine how the ends of the
spline are treated. The constructors that use these
constants will compute the knots used by the spline.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionKnots are to be suitable for a clamped B-spline.Knots are to be suitable for a B-spline clamped on its left side (lowest value in its domain).Knots are to be suitable for a B-spline clamped on its right side (highest value in its domain).Knots are to be suitable for a periodic B-spline.Knots are to be suitable for a non-clamped B-spline. -
Method Summary
Modifier and TypeMethodDescriptionstatic BSpline.Mode
Returns the enum constant of this type with the specified name.static BSpline.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNCLAMPED
Knots are to be suitable for a non-clamped B-spline. -
CLAMPED
Knots are to be suitable for a clamped B-spline. -
CLAMPED_LEFT
Knots are to be suitable for a B-spline clamped on its left side (lowest value in its domain). -
CLAMPED_RIGHT
Knots are to be suitable for a B-spline clamped on its right side (highest value in its domain). -
PERIODIC
Knots are to be suitable for a periodic B-spline.
-
-
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
-