Enum Class SegmentType

java.lang.Object
java.lang.Enum<SegmentType>
eu.webtoolkit.jwt.SegmentType
All Implemented Interfaces:
Serializable, Comparable<SegmentType>, Constable

public enum SegmentType extends Enum<SegmentType>
The segment type
  • Enum Constant Details

    • MoveTo

      public static final SegmentType MoveTo
      moveTo segment
    • LineTo

      public static final SegmentType LineTo
      lineTo segment
    • CubicC1

      public static final SegmentType CubicC1
      first control point of cubic bezier curve.

      Always followed by a CubicC2 and CubicEnd segment

    • CubicC2

      public static final SegmentType CubicC2
      second control point of cubic bezier curve

      Always followed by a CubicEnd segment

    • CubicEnd

      public static final SegmentType CubicEnd
      end point of cubic bezier curve
    • QuadC

      public static final SegmentType QuadC
      control point of quadratic bezier curve
    • QuadEnd

      public static final SegmentType QuadEnd
      end point of quadratic bezier curve
    • ArcC

      public static final SegmentType ArcC
      center of an arc

      Always followed by an ArcR and ArcAngleSweep segment

    • ArcR

      public static final SegmentType ArcR
      radius of an arc Always followed by an ArcAngleSweep segment
    • ArcAngleSweep

      public static final SegmentType ArcAngleSweep
      the sweep of an arc

      x = startAngle, y = spanAngle

  • Method Details

    • values

      public static SegmentType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SegmentType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.