Package com.sun.pdfview
Class PDFChangeStrokeCmd
java.lang.Object
com.sun.pdfview.PDFCmd
com.sun.pdfview.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 statevoid
setDash
(float[] ary, float phase) void
setEndCap
(int cap) void
setLineJoin
(int join) void
setMiterLimit
(float limit) void
setWidth
(float w) set the width of the stroke.toString
(PDFRenderer state) Methods inherited from class com.sun.pdfview.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:PDFCmd
mark the page or change the graphics state- Specified by:
execute
in 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
-