org.apache.batik.parser
public class AWTPolylineProducer extends Object implements PointsHandler, ShapeProducer
Field Summary | |
---|---|
protected boolean | newPath
Is the current path a new one? |
protected GeneralPath | path
The current path. |
protected int | windingRule
The winding rule to use to construct the path. |
Method Summary | |
---|---|
static Shape | createShape(Reader r, int wr)
Utility method for creating an ExtendedGeneralPath. |
void | endPoints()
Implements endPoints. |
Shape | getShape()
Returns the Shape object initialized during the last parsing. |
int | getWindingRule()
Returns the current winding rule. |
void | point(float x, float y)
Implements PointsHandler. |
void | setWindingRule(int i)
Sets the winding rule used to construct the path. |
void | startPoints()
Implements startPoints. |
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.