|
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
public class 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. |
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 spaceMethod Detail |
---|
public PDFICCStream getICCStream()
public int getNumComponents()
getNumComponents
in interface PDFColorSpace
public java.lang.String getName()
getName
in interface PDFColorSpace
public boolean isDeviceColorSpace()
isDeviceColorSpace
in interface PDFColorSpace
public boolean isRGBColorSpace()
isRGBColorSpace
in interface PDFColorSpace
public boolean isCMYKColorSpace()
isCMYKColorSpace
in interface PDFColorSpace
public boolean isGrayColorSpace()
isGrayColorSpace
in interface PDFColorSpace
protected java.lang.String toPDFString()
toPDFString
in class PDFObject
public 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 |