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 $
- Author:
- Stephane Hillion
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWTPolygonProducer
public AWTPolygonProducer()
createShape
public static Shape createShape(Reader r,
int wr)
throws 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:
IOException
ParseException
endPoints
public void endPoints()
throws ParseException
- Implements
PointsHandler.endPoints().
- Specified by:
endPoints in interface PointsHandler- Overrides:
endPoints in class AWTPolylineProducer
- Throws:
ParseException - if an error occured while processing the
points
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.