Enum Class StrokeSymbolLayer.CapStyle

java.lang.Object
java.lang.Enum<StrokeSymbolLayer.CapStyle>
com.esri.arcgisruntime.symbology.StrokeSymbolLayer.CapStyle
All Implemented Interfaces:
Serializable, Comparable<StrokeSymbolLayer.CapStyle>, Constable
Enclosing class:
StrokeSymbolLayer

public static enum StrokeSymbolLayer.CapStyle extends Enum<StrokeSymbolLayer.CapStyle>
The cap style describes the way that line symbol layers will terminate when combined with a geometry. The term "cap" refers to the end of the line. The options here control the shape that cap will take. In dynamic rendering mode, caps are always rendered with the "butt" style.
Since:
100.5.0
See Also:
  • Enum Constant Details

    • BUTT

      public static final StrokeSymbolLayer.CapStyle BUTT
      Applying the butt cap style will terminate the line ending exactly where the geometry ends. The end cap will be squared off. That is, two 90 degree angles form a butted ending to the symbol.
      Since:
      100.5.0
    • ROUND

      public static final StrokeSymbolLayer.CapStyle ROUND
      Applying the round cap style will terminate the line ending with a semicircle of diameter equal to the stroke width. That semicircle will be centered at the line endpoint.
      Since:
      100.5.0
    • SQUARE

      public static final StrokeSymbolLayer.CapStyle SQUARE
      Applying the square cap style will extend the termination of the line ending past the end of the geometry by a distance of 1/2 the stroke width. The end cap will be squared off. That is, two 90 degree angles form a squared ending to the symbol.
      Since:
      100.5.0
  • Method Details

    • values

      public static StrokeSymbolLayer.CapStyle[] 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 StrokeSymbolLayer.CapStyle 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