|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.PDFCmd
com.sun.pdfview.PDFShapeCmd
public class PDFShapeCmd
Encapsulates a path. Also contains extra fields and logic to check for consecutive abutting anti-aliased regions. We stroke the shared line between these regions again with a 1-pixel wide line so that the background doesn't show through between them.
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(java.awt.geom.GeneralPath gp,
int style)
create a new PDFShapeCmd and check it against the previous one to find any shared edges. |
Method Summary | |
---|---|
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 |
Methods inherited from class com.sun.pdfview.PDFCmd |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STROKE
public static final int FILL
public static final int BOTH
public static final int CLIP
Constructor Detail |
---|
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.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |