Package com.mxgraph.util.svg
Class AWTPolygonProducer
- java.lang.Object
-
- com.mxgraph.util.svg.AWTPolylineProducer
-
- com.mxgraph.util.svg.AWTPolygonProducer
-
- All Implemented Interfaces:
PointsHandler,ShapeProducer
public class AWTPolygonProducer extends AWTPolylineProducer
This class produces a polygon shape from a reader.
-
-
Field Summary
-
Fields inherited from class com.mxgraph.util.svg.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.lang.String text, int wr)Utility method for creating an ExtendedGeneralPath.voidendPoints()ImplementsPointsHandler.endPoints().-
Methods inherited from class com.mxgraph.util.svg.AWTPolylineProducer
getShape, getWindingRule, point, setWindingRule, startPoints
-
-
-
-
Method Detail
-
createShape
public static java.awt.Shape createShape(java.lang.String text, int wr) throws ParseExceptionUtility method for creating an ExtendedGeneralPath.- Parameters:
text- The text representation of the path specification.wr- The winding rule to use for creating the path.- Throws:
ParseException
-
endPoints
public void endPoints() throws ParseExceptionImplementsPointsHandler.endPoints().- Specified by:
endPointsin interfacePointsHandler- Overrides:
endPointsin classAWTPolylineProducer- Throws:
ParseException- if an error occured while processing the points
-
-