public abstract class ParametricPathIterator extends Objectimplements PathIterator
Also subclasses are responsible for knowing how much to increment t by for each path segment.
This object will translate the parametric function into cubic bezier curves.
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO| Constructor and Description |
|---|
ParametricPathIterator(AffineTransform
Create a new
ParametricPathIterator with a WIND_NON_ZERO winding rule.
|
ParametricPathIterator(int windingRule, AffineTransform
Create a new
ParametricPathIterator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
currentSegment(double[] coords)
|
int |
currentSegment(float[] coords)
|
protected abstract double |
getDX(double t)
|
protected abstract double |
getDY(double t)
|
protected abstract double |
getMaxT()
The highest value for t.
|
protected abstract double |
getNextT(double t)
The t-value that we should use next.
|
int |
getWindingRule()
|
protected abstract double |
getX(double t)
|
protected abstract double |
getY(double t)
|
boolean |
isDone()
|
void |
next()
Iterates to the next segment.
|
public ParametricPathIterator(AffineTransformtransform)
ParametricPathIterator with a WIND_NON_ZERO winding rule.
transform - an optional transform to pass these segments through.
public ParametricPathIterator(int windingRule,
AffineTransform transform)
ParametricPathIterator.
windingRule - the winding rule. This must be
WIND_EVEN_ODD or
WIND_NON_ZERO
transform - an optional transform to pass these segments through.
public final int currentSegment(float[] coords)
protected abstract double getX(double t)
protected abstract double getY(double t)
protected abstract double getDX(double t)
protected abstract double getDY(double t)
public final int currentSegment(double[] coords)
public final int getWindingRule()
public final boolean isDone()
public final void next()
getNextT() and
getMaxT()
protected abstract double getMaxT()
protected abstract double getNextT(double t)
getMaxT(), then the maximum is used in the next segment and this PathIterator is finished.
t - the current t-value