| java.lang.Object com.sun.pdfview.PDFPaint
PDFPaint | public class PDFPaint (Code) | | 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 |
PDFPaint | protected PDFPaint(Paint p)(Code) | | create a new PDFPaint based on a solid color
|
fill | public Rectangle2D fill(PDFRenderer state, Graphics2D g, GeneralPath s)(Code) | | fill a path with the paint, and record the dirty area.
Parameters: state - the current graphics state Parameters: g - the graphics into which to draw Parameters: s - the path to fill |
getColorPaint | public static PDFPaint getColorPaint(Color c)(Code) | | get the PDFPaint representing a solid color
|
getPaint | public static PDFPaint getPaint(Paint p)(Code) | | get the PDFPaint representing a generic paint
|
getPaint | public Paint getPaint()(Code) | | get the primary color associated with this PDFPaint.
|
|
|