|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.pdfview.PDFPaint
public class PDFPaint
PDFPaint is some kind of shader that knows how to fill a path. At the moment, only a solid color is implemented, but gradients and textures should be possible, too.
| Constructor Summary | |
|---|---|
protected |
PDFPaint(java.awt.Paint p)
create a new PDFPaint based on a solid color |
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
fill(PDFRenderer state,
java.awt.Graphics2D g,
java.awt.geom.GeneralPath s)
fill a path with the paint, and record the dirty area. |
static PDFPaint |
getColorPaint(java.awt.Color c)
get the PDFPaint representing a solid color |
java.awt.Paint |
getPaint()
get the primary color associated with this PDFPaint. |
static PDFPaint |
getPaint(java.awt.Paint p)
get the PDFPaint representing a generic paint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PDFPaint(java.awt.Paint p)
| Method Detail |
|---|
public static PDFPaint getColorPaint(java.awt.Color c)
public static PDFPaint getPaint(java.awt.Paint p)
public java.awt.geom.Rectangle2D fill(PDFRenderer state,
java.awt.Graphics2D g,
java.awt.geom.GeneralPath s)
state - the current graphics stateg - the graphics into which to draws - the path to fillpublic java.awt.Paint getPaint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||