Java java.awt.geom PathIterator fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom PathIterator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom PathIterator.

The text is from its open source code.

Field

intWIND_EVEN_ODD
The winding rule constant for specifying an even-odd rule for determining the interior of a path.
intWIND_NON_ZERO
The winding rule constant for specifying a non-zero rule for determining the interior of a path.
intSEG_MOVETO
The segment type constant for a point that specifies the starting location for a new subpath.
intSEG_LINETO
The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.
intSEG_QUADTO
The segment type constant for the pair of points that specify a quadratic parametric curve to be drawn from the most recently specified point.
intSEG_CUBICTO
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.
intSEG_CLOSE
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.

Constructor

Method

intcurrentSegment(float[] coords)
Returns the coordinates and type of the current path segment in the iteration.
intcurrentSegment(double[] coords)
Returns the coordinates and type of the current path segment in the iteration.
intgetWindingRule()
Returns the winding rule for determining the interior of the path.
booleanisDone()
Tests if the iteration is complete.
voidnext()
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.