public class PDFPaint extends Object
Modifier | Constructor and Description |
---|---|
protected |
PDFPaint(Paint p)
create a new PDFPaint based on a solid color
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
fill(PDFRenderer state,
Graphics2D g,
GeneralPath s)
fill a path with the paint, and record the dirty area.
|
static PDFPaint |
getColorPaint(Color c)
get the PDFPaint representing a solid color
|
Paint |
getPaint()
get the primary color associated with this PDFPaint.
|
static PDFPaint |
getPaint(Paint p)
get the PDFPaint representing a generic paint
|
protected PDFPaint(Paint p)
public static PDFPaint getColorPaint(Color c)
public Rectangle2D fill(PDFRenderer state, Graphics2D g, GeneralPath s)
state
- the current graphics stateg
- the graphics into which to draws
- the path to fillpublic Paint getPaint()
Copyright © 2022. All rights reserved.