Enum FillRule

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

    public enum FillRule
    extends Enum<FillRule>
    implements Key
    Enumerates the algorithm by which to determine if a point is inside or outside the filling region.
    Author:
    Andrea "Stock" Stocchero
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      EVENODD
      Determines how a graphical shape with more than one closed outline will be filled.
      Unlike the nonzero-rule algorithm, this algorithm will alternatively color and leave uncolored shapes defined by nested closed paths irrespective of their winding.
      NONZERO
      The non-zero winding rule is a means of determining whether a given point falls within an enclosed curve.
      Unlike the similar even-odd rule, it relies on knowing the direction of stroke for each part of the curve.
    • Enum Constant Detail

      • NONZERO

        public static final FillRule NONZERO
        The non-zero winding rule is a means of determining whether a given point falls within an enclosed curve.
        Unlike the similar even-odd rule, it relies on knowing the direction of stroke for each part of the curve.
      • EVENODD

        public static final FillRule EVENODD
        Determines how a graphical shape with more than one closed outline will be filled.
        Unlike the nonzero-rule algorithm, this algorithm will alternatively color and leave uncolored shapes defined by nested closed paths irrespective of their winding.
    • Method Detail

      • values

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

        public static FillRule 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