Package org.loboevolution.pdfview
Class PDFPaint
java.lang.Object
org.loboevolution.pdfview.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.
Author Mike Wessler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfill
(PDFRenderer state, Graphics2D g, GeneralPath s) fill a path with the paint, and record the dirty area.static PDFPaint
get the PDFPaint representing a solid colorgetPaint()
get the primary color associated with this PDFPaint.static PDFPaint
get the PDFPaint representing a generic paint
-
Constructor Details
-
PDFPaint
create a new PDFPaint based on a solid color- Parameters:
p
- aPaint
object.
-
-
Method Details
-
getColorPaint
get the PDFPaint representing a solid color -
getPaint
get the PDFPaint representing a generic paint -
fill
fill a path with the paint, and record the dirty area.- Parameters:
state
- the current graphics stateg
- the graphics into which to draws
- the path to fill- Returns:
- a
Rectangle2D
object.
-
getPaint
get the primary color associated with this PDFPaint.- Returns:
- a
Paint
object.
-