Top Fields Constructors Methods
java.awt.geom

pack-priv Class AreaIterator

Located in compilation unit of java.awt.geom.Area.

extends Object
implements PathIterator
Class Inheritance
All Implemented Interfaces
java.awt.geom.PathIterator

Field Summary

Modifier and TypeField and Description
private Vector<Curve>
private int
private Curve
private Curve
private AffineTransform

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
currentSegment(float[]
an array that holds the data returned from this method
coords
)

Implements java.awt.geom.PathIterator.currentSegment.

Returns the coordinates and type of the current path segment in the iteration.
public int
currentSegment(double[]
an array that holds the data returned from this method
coords
)

Implements java.awt.geom.PathIterator.currentSegment.

Returns the coordinates and type of the current path segment in the iteration.
public int
getWindingRule()

Implements java.awt.geom.PathIterator.getWindingRule.

Returns the winding rule for determining the interior of the path.
public boolean
isDone()

Implements java.awt.geom.PathIterator.isDone.

Tests if the iteration is complete.
public void
next()

Implements java.awt.geom.PathIterator.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.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

curvesback to summary
private Vector<Curve> curves
indexback to summary
private int index
prevcurveback to summary
private Curve prevcurve
thiscurveback to summary
private Curve thiscurve
transformback to summary
private AffineTransform transform

Constructor Detail

AreaIteratorback to summary
public AreaIterator(Vector<Curve> curves, AffineTransform at)

Method Detail

currentSegmentback to summary
public int currentSegment(float[] coords)

Implements java.awt.geom.PathIterator.currentSegment.

Doc from java.awt.geom.PathIterator.currentSegment.

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.

Parameters
coords:float[]

an array that holds the data returned from this method

Returns:int

the path-segment type of the current path segment.

currentSegmentback to summary
public int currentSegment(double[] coords)

Implements java.awt.geom.PathIterator.currentSegment.

Doc from java.awt.geom.PathIterator.currentSegment.

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.

Parameters
coords:double[]

an array that holds the data returned from this method

Returns:int

the path-segment type of the current path segment.

getWindingRuleback to summary
public int getWindingRule()

Implements java.awt.geom.PathIterator.getWindingRule.

Doc from java.awt.geom.PathIterator.getWindingRule.

Returns the winding rule for determining the interior of the path.

Returns:int

the winding rule.

isDoneback to summary
public boolean isDone()

Implements java.awt.geom.PathIterator.isDone.

Doc from java.awt.geom.PathIterator.isDone.

Tests if the iteration is complete.

Returns:boolean

true if all the segments have been read; false otherwise.

nextback to summary
public void next()

Implements java.awt.geom.PathIterator.next.

Doc from java.awt.geom.PathIterator.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.