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.Shape
createShape(java.io.Reader r, int wr)
Utility method for creating an ExtendedGeneralPath.void
endPoints()
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, ParseException
Utility 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.IOException
ParseException
-
endPoints
public void endPoints() throws ParseException
ImplementsPointsHandler.endPoints()
.- Specified by:
endPoints
in interfacePointsHandler
- Overrides:
endPoints
in classAWTPolylineProducer
- Throws:
ParseException
- if an error occured while processing the points
-
-