public class PDFColorHandler
extends java.lang.Object
Color
instance.Constructor and Description |
---|
PDFColorHandler(PDFResources resources)
Create a new instance for the given
PDFResources |
Modifier and Type | Method and 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-2017 The Apache Software Foundation. All Rights Reserved.