|
mxGraph 1.10.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.svg.AWTPolylineProducer
public class AWTPolylineProducer
This class produces a polyline shape from a reader.
Field Summary | |
---|---|
protected boolean |
newPath
Is the current path a new one? |
protected GeneralPath |
path
The current path. |
protected int |
windingRule
The winding rule to use to construct the path. |
Constructor Summary | |
---|---|
AWTPolylineProducer()
|
Method Summary | |
---|---|
static Shape |
createShape(String text,
int wr)
Utility method for creating an ExtendedGeneralPath. |
void |
endPoints()
Implements PointsHandler.endPoints() . |
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() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GeneralPath path
protected boolean newPath
protected int windingRule
Constructor Detail |
---|
public AWTPolylineProducer()
Method Detail |
---|
public static Shape createShape(String text, int wr) throws ParseException
text
- The text representation of the path specification.wr
- The winding rule to use for creating the path.
ParseException
public void setWindingRule(int i)
setWindingRule
in interface ShapeProducer
public int getWindingRule()
getWindingRule
in interface ShapeProducer
public Shape getShape()
getShape
in interface ShapeProducer
public void startPoints() throws ParseException
PointsHandler.startPoints()
.
startPoints
in interface PointsHandler
ParseException
- if an error occured while processing the
pointspublic void point(float x, float y) throws ParseException
PointsHandler.point(float,float)
.
point
in interface PointsHandler
x
- the x coordinate of the pointy
- the y coordinate of the point
ParseException
- if an error occured while processing the
pointspublic void endPoints() throws ParseException
PointsHandler.endPoints()
.
endPoints
in interface PointsHandler
ParseException
- if an error occured while processing the
points
|
mxGraph 1.10.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |