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(java.awt.geom.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 |
---|---|
java.awt.geom.Rectangle2D |
execute(PDFRenderer state)
perform the stroke and record the dirty region
|
java.lang.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(java.awt.geom.GeneralPath gp, int style)
gp
- the pathstyle
- the style: an OR of STROKE, FILL, or CLIP. As a
convenience, BOTH = STROKE | FILL.public java.awt.geom.Rectangle2D execute(PDFRenderer state)
execute
in class PDFCmd
state
- the current graphics state; may be modified during
execution.public java.lang.String getDetails()
getDetails
in class PDFCmd