public class PDFPaint
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
PDFPaint(java.awt.Paint p)
create a new PDFPaint based on a solid color
|
Modifier and Type | Method and Description |
---|---|
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
|
protected PDFPaint(java.awt.Paint p)
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()