Located in compilation unit of java.
Modifier and Type | Field and Description |
---|---|
private Vector | |
private int | |
private Curve | |
private Curve | |
private AffineTransform |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public int | currentSegment(float[]
an array that holds the data returned from
this method coords)Implements java. |
public int | currentSegment(double[]
an array that holds the data returned from
this method coords)Implements java. |
public int | getWindingRule()
Implements java. |
public boolean | |
public void | next()
Implements java. |
curves | back to summary |
---|---|
private Vector<Curve> curves |
index | back to summary |
---|---|
private int index |
prevcurve | back to summary |
---|---|
private Curve prevcurve |
thiscurve | back to summary |
---|---|
private Curve thiscurve |
transform | back to summary |
---|---|
private AffineTransform transform |
AreaIterator | back to summary |
---|---|
public AreaIterator(Vector<Curve> curves, AffineTransform at) |
currentSegment | back to summary |
---|---|
public int currentSegment(float[] coords) Implements java. Doc from java. Returns the coordinates and type of the current path segment in the iteration. The return value is the path-segment type: SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE. A float array of length 6 must be passed in and can be used to store the coordinates of the point(s). Each point is stored as a pair of float x,y coordinates. SEG_MOVETO and SEG_LINETO types returns one point, SEG_QUADTO returns two points, SEG_CUBICTO returns 3 points and SEG_CLOSE does not return any points.
|
currentSegment | back to summary |
---|---|
public int currentSegment(double[] coords) Implements java. Doc from java. Returns the coordinates and type of the current path segment in the iteration. The return value is the path-segment type: SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE. A double array of length 6 must be passed in and can be used to store the coordinates of the point(s). Each point is stored as a pair of double x,y coordinates. SEG_MOVETO and SEG_LINETO types returns one point, SEG_QUADTO returns two points, SEG_CUBICTO returns 3 points and SEG_CLOSE does not return any points.
|
getWindingRule | back to summary |
---|---|
public int getWindingRule() Implements java. Doc from java. Returns the winding rule for determining the interior of the path.
|
isDone | back to summary |
---|---|
public boolean isDone() Implements java. Doc from java. Tests if the iteration is complete.
|
next | back to summary |
---|---|
public void next() Implements java. Doc from java. 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. |