API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.geom. PathIterator View Source
Author(s)
Jim Graham
Since
Version
1.17, 11/17/05
Serial
Hierarchy
 PathIterator
Subinterfaces
Description
public interface PathIterator
  The PathIterator interface provides the mechanism for objects that implement the Shape interface to return the geometry of their boundary by allowing a caller to retrieve the path of that boundary a segment at a time.
See also:    Shape BasicStroke
Methods
Hide/Show inherited methods
public int currentSegment (double[] coords)
  Returns the coordinates and type of the current path segment in the iteration.
public int currentSegment (float[] coords)
  Returns the coordinates and type of the current path segment in the iteration.
public int getWindingRule ()
  Returns the winding rule for determining the interior of the path.
public boolean isDone ()
  Tests if the iteration is complete.
public void next ()
Moves the iterator to the next segment of the path forwards along the primary direction of traversal as long as there are more points in that direction.
Fields
Hide/Show inherited fields
publicfinalstatic int SEG_CLOSE = "4"
The segment type constant that specifies that the preceding subpath should be closed by appending a line segment back to the point corresponding to the most recent SEG_MOVETO.
publicfinalstatic int SEG_CUBICTO = "3"
  The segment type constant for the set of 3 points that specify a cubic parametric curve to be drawn from the most recently specified point.
publicfinalstatic int SEG_LINETO = "1"
The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.
publicfinalstatic int SEG_MOVETO = "0"
The segment type constant for a point that specifies the starting location for a new subpath.
publicfinalstatic int SEG_QUADTO = "2"
  The segment type constant for the pair of points that specify a quadratic parametric curve to be drawn from the most recently specified point.
publicfinalstatic int WIND_EVEN_ODD = "0"
  The winding rule constant for specifying an even-odd rule for determining the interior of a path.
publicfinalstatic int WIND_NON_ZERO = "1"
  The winding rule constant for specifying a non-zero rule for determining the interior of a path.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar