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 PathHandler. |
| void | arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
Implements PathHandler. |
| void | closePath()
Implements 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 PathHandler. |
| void | curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y)
Implements PathHandler. |
| void | curvetoCubicSmoothAbs(float x2, float y2, float x, float y)
Implements
PathHandler. |
| void | curvetoCubicSmoothRel(float x2, float y2, float x, float y)
Implements
PathHandler. |
| void | curvetoQuadraticAbs(float x1, float y1, float x, float y)
Implements
PathHandler. |
| void | curvetoQuadraticRel(float x1, float y1, float x, float y)
Implements
PathHandler. |
| void | curvetoQuadraticSmoothAbs(float x, float y)
Implements PathHandler. |
| void | curvetoQuadraticSmoothRel(float x, float y)
Implements PathHandler. |
| void | endPath()
Implements 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 PathHandler. |
| void | linetoHorizontalAbs(float x)
Implements PathHandler. |
| void | linetoHorizontalRel(float x)
Implements PathHandler. |
| void | linetoRel(float x, float y)
Implements PathHandler. |
| void | linetoVerticalAbs(float y)
Implements PathHandler. |
| void | linetoVerticalRel(float y)
Implements PathHandler. |
| void | movetoAbs(float x, float y)
Implements PathHandler. |
| void | movetoRel(float x, float y)
Implements PathHandler. |
| void | setWindingRule(int i)
Sets the winding rule used to construct the path. |
| void | startPath()
Implements 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.