Package processing.opengl
Class LineStroker
java.lang.Object
processing.opengl.LineStroker
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.LineStroker(LineStroker output, int lineWidth, int capStyle, int joinStyle, int miterLimit, PMatrix2D transform) Constructs aLineStroker. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidend()voidlineJoin()voidlineTo(int x1, int y1, int c1) voidmoveTo(int x0, int y0, int c0) voidsetOutput(LineStroker output) Sets the outputLineStrokerof thisLineStroker.voidsetParameters(int lineWidth, int capStyle, int joinStyle, int miterLimit, PMatrix2D transform) Sets the parameters of thisLineStroker.
-
Constructor Details
-
LineStroker
public LineStroker()Empty constructor.setOutputandsetParametersmust be called prior to calling any other methods. -
LineStroker
public LineStroker(LineStroker output, int lineWidth, int capStyle, int joinStyle, int miterLimit, PMatrix2D transform) Constructs aLineStroker.- Parameters:
output- an outputLineStroker.lineWidth- the desired line width in pixels, in S15.16 format.capStyle- the desired end cap style, one ofCAP_BUTT,CAP_ROUNDorCAP_SQUARE.joinStyle- the desired line join style, one ofJOIN_MITER,JOIN_ROUNDorJOIN_BEVEL.miterLimit- the desired miter limit, in S15.16 format.transform- aTransform4object indicating the transform that has been previously applied to all incoming coordinates. This is required in order to produce consistently shaped end caps and joins.
-
-
Method Details
-
setOutput
Sets the outputLineStrokerof thisLineStroker.- Parameters:
output- an outputLineStroker.
-
setParameters
public void setParameters(int lineWidth, int capStyle, int joinStyle, int miterLimit, PMatrix2D transform) Sets the parameters of thisLineStroker.- Parameters:
lineWidth- the desired line width in pixels, in S15.16 format.capStyle- the desired end cap style, one ofCAP_BUTT,CAP_ROUNDorCAP_SQUARE.joinStyle- the desired line join style, one ofJOIN_MITER,JOIN_ROUNDorJOIN_BEVEL.miterLimit- the desired miter limit, in S15.16 format.transform- aTransform4object indicating the transform that has been previously applied to all incoming coordinates. This is required in order to produce consistently shaped end caps and joins.
-
moveTo
public void moveTo(int x0, int y0, int c0) -
lineJoin
public void lineJoin() -
lineTo
public void lineTo(int x1, int y1, int c1) -
close
public void close() -
end
public void end()
-