public class PDFShapeCmd extends PDFCmd
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
PDFShapeCmd(GeneralPath gp,
int style)
create a new PDFShapeCmd and check it against the previous one
to find any shared edges.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
execute(PDFRenderer state)
perform the stroke and record the dirty region
|
String |
getDetails()
Get detailed information about this shape
|
public static final int STROKE
public static final int FILL
public static final int BOTH
public static final int CLIP
public PDFShapeCmd(GeneralPath gp, int style)
gp - the pathstyle - the style: an OR of STROKE, FILL, or CLIP. As a
convenience, BOTH = STROKE | FILL.public Rectangle2D execute(PDFRenderer state)
execute in class PDFCmdstate - the current graphics state; may be modified during
execution.public String getDetails()
getDetails in class PDFCmdCopyright © 2024. All rights reserved.