org.apache.batik.parser
public class AWTPathProducer extends Object implements PathHandler, ShapeProducer
Field Summary | |
---|---|
protected float | currentX
The current x position. |
protected float | currentY
The current y position. |
protected ExtendedGeneralPath | path
The temporary value of extendedGeneralPath. |
protected int | windingRule
The winding rule to use to construct the path. |
protected float | xCenter
The reference x point for smooth arcs. |
protected float | yCenter
The reference y point for smooth arcs. |
Method Summary | |
---|---|
void | arcAbs(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
Implements {@link
PathHandler#arcAbs(float,float,float,boolean,boolean,float,float)}. |
void | arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
Implements {@link
PathHandler#arcRel(float,float,float,boolean,boolean,float,float)}. |
void | closePath()
Implements {@link PathHandler#closePath()}. |
static Shape | createShape(Reader r, int wr)
Utility method for creating an ExtendedGeneralPath. |
void | curvetoCubicAbs(float x1, float y1, float x2, float y2, float x, float y)
Implements {@link
PathHandler#curvetoCubicAbs(float,float,float,float,float,float)}. |
void | curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y)
Implements {@link
PathHandler#curvetoCubicRel(float,float,float,float,float,float)}. |
void | curvetoCubicSmoothAbs(float x2, float y2, float x, float y)
Implements
{@link PathHandler#curvetoCubicSmoothAbs(float,float,float,float)}. |
void | curvetoCubicSmoothRel(float x2, float y2, float x, float y)
Implements
{@link PathHandler#curvetoCubicSmoothRel(float,float,float,float)}. |
void | curvetoQuadraticAbs(float x1, float y1, float x, float y)
Implements
{@link PathHandler#curvetoQuadraticAbs(float,float,float,float)}. |
void | curvetoQuadraticRel(float x1, float y1, float x, float y)
Implements
{@link PathHandler#curvetoQuadraticRel(float,float,float,float)}. |
void | curvetoQuadraticSmoothAbs(float x, float y)
Implements {@link PathHandler#curvetoQuadraticSmoothAbs(float,float)}. |
void | curvetoQuadraticSmoothRel(float x, float y)
Implements {@link PathHandler#curvetoQuadraticSmoothRel(float,float)}. |
void | endPath()
Implements {@link PathHandler#endPath()}. |
Shape | getShape()
Returns the Shape object initialized during the last parsing. |
int | getWindingRule()
Returns the current winding rule. |
void | linetoAbs(float x, float y)
Implements {@link PathHandler#linetoAbs(float,float)}. |
void | linetoHorizontalAbs(float x)
Implements {@link PathHandler#linetoHorizontalAbs(float)}. |
void | linetoHorizontalRel(float x)
Implements {@link PathHandler#linetoHorizontalRel(float)}. |
void | linetoRel(float x, float y)
Implements {@link PathHandler#linetoRel(float,float)}. |
void | linetoVerticalAbs(float y)
Implements {@link PathHandler#linetoVerticalAbs(float)}. |
void | linetoVerticalRel(float y)
Implements {@link PathHandler#linetoVerticalRel(float)}. |
void | movetoAbs(float x, float y)
Implements {@link PathHandler#movetoAbs(float,float)}. |
void | movetoRel(float x, float y)
Implements {@link PathHandler#movetoRel(float,float)}. |
void | setWindingRule(int i)
Sets the winding rule used to construct the path. |
void | startPath()
Implements {@link PathHandler#startPath()}. |
Parameters: r The reader used to read the path specification. wr The winding rule to use for creating the path.
Returns: the shape or null if this handler has not been used by a parser.