Package com.sun.pdfview
Class PDFPaint
java.lang.Object
com.sun.pdfview.PDFPaint
- Direct Known Subclasses:
PatternType1.TilingPatternPaint
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
Field Details
-
mainPaint
-
-
Constructor Details
-
PDFPaint
create a new PDFPaint based on a solid color
-
-
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
-
getPaint
get the primary color associated with this PDFPaint.
-