Enum EndType

java.lang.Object
java.lang.Enum<EndType>
com.github.micycle1.clipper2.offset.EndType
All Implemented Interfaces:
Serializable, Comparable<EndType>, java.lang.constant.Constable

public enum EndType extends Enum<EndType>
The EndType enumerator is only needed when offsetting (inflating/shrinking). It isn't needed for polygon clipping.

EndType has 5 values:

  • Polygon: the path is treated as a polygon
  • Join: ends are joined and the path treated as a polyline
  • Square: ends extend the offset amount while being squared off
  • Round: ends extend the offset amount while being rounded off
  • Butt: ends are squared off without any extension
With both EndType.Polygon and EndType.Join, path closure will occur regardless of whether or not the first and last vertices in the path match.
  • Enum Constant Details

    • Polygon

      public static final EndType Polygon
    • Joined

      public static final EndType Joined
    • Butt

      public static final EndType Butt
    • Square

      public static final EndType Square
    • Round

      public static final EndType Round
  • Method Details

    • values

      public static EndType[] 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 EndType 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