Enum StrokeSymbolLayer.CapStyle

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<StrokeSymbolLayer.CapStyle>
    Enclosing class:
    StrokeSymbolLayer

    public static enum StrokeSymbolLayer.CapStyle
    extends java.lang.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:
    GraphicsOverlay.RenderingMode.DYNAMIC
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BUTT
      Applying the butt cap style will terminate the line ending exactly where the geometry ends.
      ROUND
      Applying the round cap style will terminate the line ending with a semicircle of diameter equal to the stroke width.
      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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static StrokeSymbolLayer.CapStyle valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static StrokeSymbolLayer.CapStyle[] values()
      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 Detail

      • 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 Detail

      • values

        public static StrokeSymbolLayer.CapStyle[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StrokeSymbolLayer.CapStyle c : StrokeSymbolLayer.CapStyle.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StrokeSymbolLayer.CapStyle valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null