Enum JoinStyle

  • All Implemented Interfaces:
    Serializable, Comparable<JoinStyle>, Key

    public enum JoinStyle
    extends Enum<JoinStyle>
    implements Key
    Determines how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).
    Author:
    Andrea "Stock" Stocchero
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BEVEL
      Fills an additional triangular area between the common end point of connected segments, and the separate outside rectangular corners of each segment.
      MITER
      Connected segments are joined by extending their outside edges to connect at a single point, with the effect of filling an additional shaped area.
      This is the default.
      ROUND
      Rounds off the corners of a shape by filling an additional sector of disc centered at the common end point of connected segments.
      The radius for these rounded corners is equal to the line width.
    • Enum Constant Detail

      • BEVEL

        public static final JoinStyle BEVEL
        Fills an additional triangular area between the common end point of connected segments, and the separate outside rectangular corners of each segment.
      • ROUND

        public static final JoinStyle ROUND
        Rounds off the corners of a shape by filling an additional sector of disc centered at the common end point of connected segments.
        The radius for these rounded corners is equal to the line width.
      • MITER

        public static final JoinStyle MITER
        Connected segments are joined by extending their outside edges to connect at a single point, with the effect of filling an additional shaped area.
        This is the default.
    • Method Detail

      • values

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

        public static JoinStyle 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
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property