public class LineDrawingVisitor extends BasicStrokeLineVisitor
BasicStroke
. The current
implementation supports everything except dashes. This class draws a series
of quads for each line segment, joins corners and endpoints as appropriate.CURVE_STEPS
Constructor and Description |
---|
LineDrawingVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
beginPoly(int windingRule)
Starts the polygon or polyline.
|
void |
endPoly()
Signifies that the polygon or polyline has ended.
|
void |
setGLContext(GL context)
Sets the GL context to be used for the next drawing session.
|
closeLine, cubicTo, lineTo, moveTo, quadTo, setStroke
getNumCurveSteps, setNumCurveSteps
public void setGLContext(GL context)
PathVisitor
context
- The GL contextpublic void beginPoly(int windingRule)
PathVisitor
beginPoly
in interface PathVisitor
beginPoly
in class BasicStrokeLineVisitor
windingRule
- The winding rule for the polygon.public void endPoly()
PathVisitor
endPoly
in interface PathVisitor
endPoly
in class BasicStrokeLineVisitor
Copyright © 2010-2013. All Rights Reserved.