|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.geom.FlatteningPathIterator
Constructor Summary | |
FlatteningPathIterator(PathIterator src,
double flatness,
int limit)
Constructs a new FlatteningPathIterator object that flattens a path as it iterates over it. |
|
FlatteningPathIterator(PathIterator src,
double flatness)
Constructs a new FlatteningPathIterator object that flattens a path as it iterates over it. |
Method Summary | |
int | currentSegment(double[] coords)
Returns the coordinates and type of the current path segment in the iteration. |
int | currentSegment(float[] coords)
Returns the coordinates and type of the current path segment in the iteration. |
double | getFlatness()
Return the flatness of this iterator. |
int | getRecursionLimit()
Return the recursion limit of this iterator. |
int | getWindingRule()
Return the winding rule for determining the interior of the path. |
boolean | isDone()
Tests if there are more points to read. |
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. |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Constructor Detail |
public FlatteningPathIterator(PathIterator src, double flatness)
src
- the original unflattened path being iterated over
flatness
- the maximum allowable distance between the
control points and the flattened curvepublic FlatteningPathIterator(PathIterator src, double flatness, int limit)
limit
parameter allows you to control the
maximum number of recursive subdivisions that the iterator
can make before it assumes that the curve is flat enough
without measuring against the flatness
parameter.
The flattened iteration will thus never generate more than
a maximum of (2^limit)
line segments per curve.
src
- the original unflattened path being iterated over
flatness
- the maximum allowable distance between the
control points and the flattened curve
limit
- the maximum number of recursive subdivisions
allowed for any curved segmentMethod Detail |
public double getFlatness()
public int getRecursionLimit()
public int getWindingRule()
PathIterator.WIND_EVEN_ODD
,
PathIterator.WIND_NON_ZERO
public boolean isDone()
public void next()
public int currentSegment(float[] coords)
PathIterator.SEG_MOVETO
,
PathIterator.SEG_LINETO
,
PathIterator.SEG_CLOSE
public int currentSegment(double[] coords)
PathIterator.SEG_MOVETO
,
PathIterator.SEG_LINETO
,
PathIterator.SEG_CLOSE
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |