Class PDFPaint
java.lang.Object
org.openpdf.renderer.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 PDFPaintget the PDFPaint representing a solid colorgetPaint()get the primary color associated with this PDFPaint.static PDFPaintget the PDFPaint representing a generic paint
-
Field Details
-
mainPaint
-
-
Constructor Details
-
PDFPaint
create a new PDFPaint based on a solid color
-
-
Method Details
-
getColorPaint
-
getPaint
-
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.
-