Package org.openpdf.renderer
Class PDFChangeStrokeCmd
java.lang.Object
org.openpdf.renderer.PDFCmd
org.openpdf.renderer.PDFChangeStrokeCmd
change the stroke style
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(PDFRenderer state) mark the page or change the graphics statevoidsetDash(float[] ary, float phase) voidsetEndCap(int cap) voidsetLineJoin(int join) voidsetMiterLimit(float limit) voidsetWidth(float w) set the width of the stroke.toString(PDFRenderer state) Methods inherited from class org.openpdf.renderer.PDFCmd
getDetails, toString
-
Field Details
-
w
float w -
limit
float limit -
phase
float phase -
cap
int cap -
join
int join -
ary
float[] ary
-
-
Constructor Details
-
PDFChangeStrokeCmd
public PDFChangeStrokeCmd()
-
-
Method Details
-
setWidth
public void setWidth(float w) set the width of the stroke. Rendering needs to account for a minimum stroke width in creating the output.- Parameters:
w- float
-
setEndCap
public void setEndCap(int cap) -
setLineJoin
public void setLineJoin(int join) -
setMiterLimit
public void setMiterLimit(float limit) -
setDash
public void setDash(float[] ary, float phase) -
execute
Description copied from class:PDFCmdmark the page or change the graphics state- Specified by:
executein classPDFCmd- Parameters:
state- the current graphics state; may be modified during execution.- Returns:
- the region of the page made dirty by executing this command or null if no region was touched. Note this value should be in the coordinates of the image touched, not the page.
-
toString
-