Enum HemfPlusPen.EmfPlusLineCapType

    • Enum Constant Detail

      • FLAT

        public static final HemfPlusPen.EmfPlusLineCapType FLAT
        Specifies a squared-off line cap. The end of the line MUST be the last point in the line.
      • SQUARE

        public static final HemfPlusPen.EmfPlusLineCapType SQUARE
        Specifies a square line cap. The center of the square MUST be located at the last point in the line. The width of the square is the line width.
      • ROUND

        public static final HemfPlusPen.EmfPlusLineCapType ROUND
        Specifies a circular line cap. The center of the circle MUST be located at the last point in the line. The diameter of the circle is the line width.
      • TRIANGLE

        public static final HemfPlusPen.EmfPlusLineCapType TRIANGLE
        Specifies a triangular line cap. The base of the triangle MUST be located at the last point in the line. The base of the triangle is the line width.
      • SQUARE_ANCHOR

        public static final HemfPlusPen.EmfPlusLineCapType SQUARE_ANCHOR
        Specifies that the line end is anchored with a square line cap. The center of the square MUST be located at the last point in the line. The height and width of the square are the line width.
      • ROUND_ANCHOR

        public static final HemfPlusPen.EmfPlusLineCapType ROUND_ANCHOR
        Specifies that the line end is anchored with a circular line cap. The center of the circle MUST be located at the last point in the line. The circle SHOULD be wider than the line.
      • DIAMOND_ANCHOR

        public static final HemfPlusPen.EmfPlusLineCapType DIAMOND_ANCHOR
        Specifies that the line end is anchored with a diamond-shaped line cap, which is a square turned at 45 degrees. The center of the diamond MUST be located at the last point in the line. The diamond SHOULD be wider than the line.
      • ARROW_ANCHOR

        public static final HemfPlusPen.EmfPlusLineCapType ARROW_ANCHOR
        Specifies that the line end is anchored with an arrowhead shape. The arrowhead point MUST be located at the last point in the line. The arrowhead SHOULD be wider than the line.
    • Field Detail

      • id

        public final int id
    • Method Detail

      • values

        public static HemfPlusPen.EmfPlusLineCapType[] 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 (HemfPlusPen.EmfPlusLineCapType c : HemfPlusPen.EmfPlusLineCapType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HemfPlusPen.EmfPlusLineCapType 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
      • valueOf

        public static HemfPlusPen.EmfPlusLineCapType valueOf​(int id)
        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:
        id - 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