pivot.wtk.media.drawing
Enum Path.WindingRule

java.lang.Object
  extended by java.lang.Enum<Path.WindingRule>
      extended by pivot.wtk.media.drawing.Path.WindingRule
All Implemented Interfaces:
Serializable, Comparable<Path.WindingRule>
Enclosing class:
Path

public static enum Path.WindingRule
extends Enum<Path.WindingRule>

The winding rule specifies how the interior of a path is determined.

Author:
tvolkert

Enum Constant Summary
EVEN_ODD
          An EVEN_ODD winding rule means that enclosed regions of the path alternate between interior and exterior areas as traversed from the outside of the path towards a point inside the region.
NON_ZERO
          A NON_ZERO winding rule means that if a ray is drawn in any direction from a given point to infinity and the places where the path intersects the ray are examined, the point is inside of the path if and only if the number of times that the path crosses the ray from left to right does not equal the number of times that the path crosses the ray from right to left.
 
Method Summary
static Path.WindingRule decode(String value)
           
static Path.WindingRule valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Path.WindingRule[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NON_ZERO

public static final Path.WindingRule NON_ZERO
A NON_ZERO winding rule means that if a ray is drawn in any direction from a given point to infinity and the places where the path intersects the ray are examined, the point is inside of the path if and only if the number of times that the path crosses the ray from left to right does not equal the number of times that the path crosses the ray from right to left.


EVEN_ODD

public static final Path.WindingRule EVEN_ODD
An EVEN_ODD winding rule means that enclosed regions of the path alternate between interior and exterior areas as traversed from the outside of the path towards a point inside the region.

Method Detail

values

public static Path.WindingRule[] 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 (Path.WindingRule c : Path.WindingRule.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Path.WindingRule 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

decode

public static Path.WindingRule decode(String value)