Package com.sun.pdfview
Class PDFChangeStrokeCmd
- java.lang.Object
-
- com.sun.pdfview.PDFCmd
-
- com.sun.pdfview.PDFChangeStrokeCmd
-
class PDFChangeStrokeCmd extends PDFCmd
change the stroke style
-
-
Constructor Summary
Constructors Constructor Description PDFChangeStrokeCmd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2Dexecute(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.java.lang.StringtoString(PDFRenderer state)-
Methods inherited from class com.sun.pdfview.PDFCmd
getDetails, toString
-
-
-
-
Method Detail
-
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
public java.awt.geom.Rectangle2D execute(PDFRenderer state)
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
public java.lang.String toString(PDFRenderer state)
-
-