public class FillSimpleConvexPolygonVisitor extends SimplePathVisitor
CURVE_STEPS
Constructor and Description |
---|
FillSimpleConvexPolygonVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
beginPoly(int windingRule)
Starts the polygon or polyline.
|
void |
closeLine()
Specifies that the preceding subpath should be closed by appending a line
segment back to the point corresponding to the most recent call to
#moveTo(float[]) . |
void |
endPoly()
Signifies that the polygon or polyline has ended.
|
void |
lineTo(float[] vertex)
Specifies the end point of a line to be drawn from the most recently
specified point.
|
void |
moveTo(float[] vertex)
Specifies the starting location for a new subpath.
|
void |
setGLContext(GL context)
Sets the GL context to be used for the next drawing session.
|
void |
setStroke(BasicStroke stroke)
Sets the stroke to be used when drawing a path.
|
cubicTo, getNumCurveSteps, quadTo, setNumCurveSteps
public void setGLContext(GL context)
PathVisitor
context
- The GL contextpublic void setStroke(BasicStroke stroke)
PathVisitor
public void beginPoly(int windingRule)
PathVisitor
windingRule
- The winding rule for the polygon.public void closeLine()
PathVisitor
#moveTo(float[])
.public void endPoly()
PathVisitor
public void lineTo(float[] vertex)
PathVisitor
vertex
- An array where the first two values are the x,y coordinates of the
next point in the subpath.public void moveTo(float[] vertex)
PathVisitor
vertex
- An array where the first two values are the x,y coordinates of the
start of the subpath.Copyright © 2010-2013. All Rights Reserved.