Enum SplinePathBuilder.CPointType

java.lang.Object
java.lang.Enum<SplinePathBuilder.CPointType>
org.bzdev.geom.SplinePathBuilder.CPointType
All Implemented Interfaces:
Serializable, Comparable<SplinePathBuilder.CPointType>
Enclosing class:
SplinePathBuilder

public static enum SplinePathBuilder.CPointType extends Enum<SplinePathBuilder.CPointType>
Type of a point along a path. This is used in a constructor for the class SplinePathBuilder.CPoint.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The 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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • MOVE_TO

      public static final SplinePathBuilder.CPointType 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

      public static final SplinePathBuilder.CPointType 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

      public static final SplinePathBuilder.CPointType 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 by SEG_END.
    • SPLINE

      public static final SplinePathBuilder.CPointType SPLINE
      This defines a point along a spline.
    • SPLINE_FUNCTION

      public static final SplinePathBuilder.CPointType 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

      public static final SplinePathBuilder.CPointType 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

      public static final SplinePathBuilder.CPointType 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

      public static final SplinePathBuilder.CPointType 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

      public static final SplinePathBuilder.CPointType 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

      public static SplinePathBuilder.CPointType[] 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

      public static SplinePathBuilder.CPointType 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 name
      NullPointerException - if the argument is null