Package org.apache.fop.pdf
Class PDFColorHandler
- java.lang.Object
-
- org.apache.fop.pdf.PDFColorHandler
-
public class PDFColorHandler extends java.lang.ObjectThis class handles the registration of color spaces and the generation of PDF code to select the right colors given aColorinstance.
-
-
Constructor Summary
Constructors Constructor Description PDFColorHandler(PDFResources resources)Create a new instance for the givenPDFResources
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidestablishColor(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.
-
-
-
Constructor Detail
-
PDFColorHandler
public PDFColorHandler(PDFResources resources)
Create a new instance for the givenPDFResources- Parameters:
resources- the PDF resources
-
-
Method Detail
-
establishColor
public 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.- Parameters:
codeBuffer- the target buffer to receive the color selection codecolor- the colorfill- true for fill color, false for stroke color
-
-