PointsHandler, ShapeProducerAWTPolygonProducerpublic class AWTPolylineProducer extends java.lang.Object implements PointsHandler, ShapeProducer
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
newPath |
Is the current path a new one?
|
protected java.awt.geom.GeneralPath |
path |
The current path.
|
protected int |
windingRule |
The winding rule to use to construct the path.
|
| Constructor | Description |
|---|---|
AWTPolylineProducer() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.awt.Shape |
createShape(java.lang.String text,
int wr) |
Utility method for creating an ExtendedGeneralPath.
|
void |
endPoints() |
Implements
PointsHandler.endPoints(). |
java.awt.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.point(float,float). |
void |
setWindingRule(int i) |
Sets the winding rule used to construct the path.
|
void |
startPoints() |
Implements
PointsHandler.startPoints(). |
protected java.awt.geom.GeneralPath path
protected boolean newPath
protected int windingRule
public static java.awt.Shape createShape(java.lang.String text,
int wr)
throws ParseException
text - The text representation of the path specification.wr - The winding rule to use for creating the path.ParseExceptionpublic void setWindingRule(int i)
setWindingRule in interface ShapeProducerpublic int getWindingRule()
getWindingRule in interface ShapeProducerpublic java.awt.Shape getShape()
getShape in interface ShapeProducerpublic void startPoints()
throws ParseException
PointsHandler.startPoints().startPoints in interface PointsHandlerParseException - if an error occured while processing the
pointspublic void point(float x,
float y)
throws ParseException
PointsHandler.point(float,float).point in interface PointsHandlerx - the x coordinate of the pointy - the y coordinate of the pointParseException - if an error occured while processing the
pointspublic void endPoints()
throws ParseException
PointsHandler.endPoints().endPoints in interface PointsHandlerParseException - if an error occured while processing the
pointsCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.