public class PDFColorHandler
extends java.lang.Object
Color
instance.Constructor | Description |
---|---|
PDFColorHandler(PDFResources resources) |
Create a new instance for the given
PDFResources |
Modifier and Type | Method | Description |
---|---|---|
void |
establishColor(java.lang.StringBuffer codeBuffer,
java.awt.Color color,
boolean fill) |
Generates code to select the given color and handles the registration of color spaces in
PDF where necessary.
|
public PDFColorHandler(PDFResources resources)
PDFResources
resources
- the PDF resourcespublic void establishColor(java.lang.StringBuffer codeBuffer, java.awt.Color color, boolean fill)
codeBuffer
- the target buffer to receive the color selection codecolor
- the colorfill
- true for fill color, false for stroke colorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.