class PathIteratorHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PathIteratorHelper.Struct |
| Modifier and Type | Field and Description |
|---|---|
private float[] |
f |
private PathIterator |
itr |
| Constructor and Description |
|---|
PathIteratorHelper(PathIterator itr) |
| Modifier and Type | Method and Description |
|---|---|
int |
currentSegment(PathIteratorHelper.Struct struct)
Returns the coordinates and type of the current path segment in
the iteration.
|
int |
getWindingRule()
Returns the winding rule for determining the interior of the
path.
|
boolean |
isDone()
Tests if the iteration is complete.
|
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.
|
private PathIterator itr
private float[] f
public PathIteratorHelper(PathIterator itr)
public int getWindingRule()
public boolean isDone()
true if all the segments have
been read; false otherwise.public void next()
public int currentSegment(PathIteratorHelper.Struct struct)
coords - an array that holds the data returned from
this method#SEG_MOVETO,
#SEG_LINETO,
#SEG_QUADTO,
#SEG_CUBICTO,
#SEG_CLOSE