Enum StrokeSymbolLayer.CapStyle

    • 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​(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