com.sun.pdfview
public class PDFShapeCmd extends PDFCmd
| Field Summary | |
|---|---|
| static int | BOTH perform both stroke and fill |
| static int | CLIP set the clip region to the path |
| static int | FILL fill the path with the fill paint |
| static int | STROKE stroke the outline of the path with the stroke paint |
| Constructor Summary | |
|---|---|
| PDFShapeCmd(GeneralPath gp, int style)
create a new PDFShapeCmd and check it against the previous one
to find any shared edges. | |
| Method Summary | |
|---|---|
| Rectangle2D | execute(PDFRenderer state)
perform the stroke and record the dirty region |
Parameters: gp the path style the style: an OR of STROKE, FILL, or CLIP. As a convenience, BOTH = STROKE | FILL.