public interface PathIterator
IShape
, one segment at a time.Modifier and Type | Field and Description |
---|---|
static int |
SEG_CLOSE
Indicates that the preceding subpath should be closed by appending a line segment back to
the point corresponding to the most recent
SEG_MOVETO . |
static int |
SEG_CUBICTO
Indicates a pair of points that specify a cubic parametric curve to be drawn from the most
recently specified point.
|
static int |
SEG_LINETO
Indicates the end point of a line to be drawn from the most recently specified point.
|
static int |
SEG_MOVETO
Indicates the starting location for a new subpath.
|
static int |
SEG_QUADTO
Indicates a pair of points that specify a quadratic parametric curve to be drawn from the
most recently specified point.
|
static int |
WIND_EVEN_ODD
Specifies the even/odd rule for determining the interior of a path.
|
static int |
WIND_NON_ZERO
Specifies the non-zero rule for determining the interior of a path.
|
Modifier and Type | Method and Description |
---|---|
int |
currentSegment(double[] coords)
Returns the coordinates and type of the current path segment.
|
boolean |
isDone()
Returns true if this path has no additional segments.
|
void |
next()
Advances this path to the next segment.
|
int |
windingRule()
Returns the winding rule used to determine the interior of this path.
|
static final int WIND_EVEN_ODD
static final int WIND_NON_ZERO
static final int SEG_MOVETO
static final int SEG_LINETO
static final int SEG_QUADTO
static final int SEG_CUBICTO
static final int SEG_CLOSE
SEG_MOVETO
.int windingRule()
boolean isDone()
void next()
int currentSegment(double[] coords)
coords
differs by path segment type: 0 - SEG_CLOSE
, 1 - SEG_MOVETO
, SEG_LINETO
, 2 - SEG_QUADTO
, 3 - SEG_CUBICTO
.coords
- a buffer into which the current coordinates will be copied. It must be of
length 6. Each point is stored as a pair of x,y coordinates.SEG_MOVETO
.Copyright © 2017. All rights reserved.