|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFICCBasedColorSpace
Represents an ICCBased color space in PDF.
| Field Summary |
| Fields inherited from class org.apache.fop.pdf.PDFObject |
DATE_FORMAT, log |
| Constructor Summary | |
PDFICCBasedColorSpace(PDFICCStream iccStream)
Constructs a the ICCBased color space. |
|
PDFICCBasedColorSpace(java.lang.String explicitName,
PDFICCStream iccStream)
Constructs a the ICCBased color space with an explicit name (ex. |
|
| Method Summary | |
PDFICCStream |
getICCStream()
|
java.lang.String |
getName()
|
int |
getNumComponents()
Get the number of color components for this colorspace |
boolean |
isCMYKColorSpace()
|
boolean |
isDeviceColorSpace()
|
boolean |
isGrayColorSpace()
|
boolean |
isRGBColorSpace()
|
static PDFICCBasedColorSpace |
setupsRGBAsDefaultRGBColorSpace(PDFDocument pdfDoc)
Sets sRGB as the DefaultRGB color space in the PDF document. |
static PDFICCStream |
setupsRGBColorProfile(PDFDocument pdfDoc)
Sets up the sRGB color profile in the PDF document. |
static PDFICCBasedColorSpace |
setupsRGBColorSpace(PDFDocument pdfDoc)
Installs the sRGB color space in the PDF document. |
protected java.lang.String |
toPDFString()
This method returns a String representation of the PDF object. The result is normally converted/encoded to a byte array by toPDF(). Only use this method to implement the serialization if the object can be fully represented as text. If the PDF representation of the object contains binary content use toPDF() or output(OutputStream) instead. This applies to any object potentially containing a string object because string object are encrypted and therefore need to be binary. |
| Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PDFICCBasedColorSpace(java.lang.String explicitName,
PDFICCStream iccStream)
explicitName - an explicit name or null if a name should be generatediccStream - the ICC stream to associate with this color spacepublic PDFICCBasedColorSpace(PDFICCStream iccStream)
iccStream - the ICC stream to associate with this color space| Method Detail |
public PDFICCStream getICCStream()
public int getNumComponents()
getNumComponents in interface PDFColorSpacepublic java.lang.String getName()
getName in interface PDFColorSpacepublic boolean isDeviceColorSpace()
isDeviceColorSpace in interface PDFColorSpacepublic boolean isRGBColorSpace()
isRGBColorSpace in interface PDFColorSpacepublic boolean isCMYKColorSpace()
isCMYKColorSpace in interface PDFColorSpacepublic boolean isGrayColorSpace()
isGrayColorSpace in interface PDFColorSpaceprotected java.lang.String toPDFString()
toPDFString in class PDFObjectpublic static PDFICCBasedColorSpace setupsRGBAsDefaultRGBColorSpace(PDFDocument pdfDoc)
pdfDoc - the PDF document
public static PDFICCBasedColorSpace setupsRGBColorSpace(PDFDocument pdfDoc)
pdfDoc - the PDF document
public static PDFICCStream setupsRGBColorProfile(PDFDocument pdfDoc)
pdfDoc - the PDF document
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||