public class QuadraticFlattenedPathIterator extends Objectimplements PathIterator
PathIterator that flattens all cubic segments into a series of quadratic segments.
The number of quadratic segments used to emulate a cubic segment will vary. It may even be accurate. :)
| Modifier and Type | Field and Description |
|---|---|
protected static Vector |
extremaVector
Used for debugging.
|
protected static int |
MAX_DIVISIONS
The maximum number of divisions between extrema this will calculate
|
protected static Vector |
pointsVector
Used for debugging.
|
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO| Constructor and Description |
|---|
QuadraticFlattenedPathIterator(PathIterator
Constructs a
QuadraticflattenedPathIterator.
|
QuadraticFlattenedPathIterator(Shape
Constructs a
QuadraticFlattenedPathIterator
|
| Modifier and Type | Method and Description |
|---|---|
int |
currentSegment(double[] d)
|
int |
currentSegment(float[] f)
|
int |
getWindingRule()
|
boolean |
isDone()
|
void |
next()
|
protected static int MAX_DIVISIONS
protected static Vector<Point2D > pointsVector
public QuadraticFlattenedPathIterator(PathIteratori)
QuadraticflattenedPathIterator.
i -
public QuadraticFlattenedPathIterator(Shapes)
QuadraticFlattenedPathIterator