- All Implemented Interfaces:
Serializable
,Comparable<SplinePathBuilder.WindingRule>
- Enclosing class:
- SplinePathBuilder
Enum to define winding rules.
For a Path2D.Double, Path2D.Float, and SplinePath2D, a winding
rule is specified by an integer constant defined in Path2D and used
in a constructor.
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecify a winding rule equal to Path2D.WIND_EVEN_ODD.Specify a winding rule equal to Path2D.WIND_NON_ZERO. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static SplinePathBuilder.WindingRule[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WIND_EVEN_ODD
Specify a winding rule equal to Path2D.WIND_EVEN_ODD. -
WIND_NON_ZERO
Specify a winding rule equal to Path2D.WIND_NON_ZERO.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-