Package org.apache.batik.parser
Class AWTPolygonProducer
- java.lang.Object
-
- org.apache.batik.parser.AWTPolylineProducer
-
- org.apache.batik.parser.AWTPolygonProducer
-
- All Implemented Interfaces:
PointsHandler,ShapeProducer
public class AWTPolygonProducer extends AWTPolylineProducer
This class produces a polygon shape from a reader.- Version:
- $Id: AWTPolygonProducer.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
-
Fields inherited from class org.apache.batik.parser.AWTPolylineProducer
newPath, path, windingRule
-
-
Constructor Summary
Constructors Constructor Description AWTPolygonProducer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.awt.ShapecreateShape(java.io.Reader r, int wr)Utility method for creating an ExtendedGeneralPath.voidendPoints()ImplementsPointsHandler.endPoints().-
Methods inherited from class org.apache.batik.parser.AWTPolylineProducer
getShape, getWindingRule, point, setWindingRule, startPoints
-
-
-
-
Method Detail
-
createShape
public static java.awt.Shape createShape(java.io.Reader r, int wr) throws java.io.IOException, ParseExceptionUtility method for creating an ExtendedGeneralPath.- Parameters:
r- The reader used to read the path specification.wr- The winding rule to use for creating the path.- Throws:
java.io.IOExceptionParseException
-
endPoints
public void endPoints() throws ParseExceptionImplementsPointsHandler.endPoints().- Specified by:
endPointsin interfacePointsHandler- Overrides:
endPointsin classAWTPolylineProducer- Throws:
ParseException- if an error occured while processing the points
-
-