org.apache.fop.pdf
Class PDFICCBasedColorSpace
java.lang.Object
|
+--org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.PDFICCBasedColorSpace
- All Implemented Interfaces:
- PDFColorSpace
- public class PDFICCBasedColorSpace
- extends PDFObject
- implements PDFColorSpace
Represents an ICCBased color space in PDF.
Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeString, encodeText, formatDateTime, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, output, referencePDF, setDocument, setObjectNumber, toPDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFICCBasedColorSpace
public PDFICCBasedColorSpace(java.lang.String explicitName,
PDFICCStream iccStream)
- Constructs a the ICCBased color space with an explicit name (ex. "DefaultRGB").
- Parameters:
explicitName
- an explicit name or null if a name should be generatediccStream
- the ICC stream to associate with this color space
PDFICCBasedColorSpace
public PDFICCBasedColorSpace(PDFICCStream iccStream)
- Constructs a the ICCBased color space.
- Parameters:
iccStream
- the ICC stream to associate with this color space
getICCStream
public PDFICCStream getICCStream()
- Returns:
- the ICC stream associated with this color space
getNumComponents
public int getNumComponents()
- Description copied from interface:
PDFColorSpace
- Get the number of color components for this colorspace
- Specified by:
getNumComponents
in interface PDFColorSpace
- See Also:
PDFColorSpace.getNumComponents()
getName
public java.lang.String getName()
- Specified by:
getName
in interface PDFColorSpace
- See Also:
PDFColorSpace.getName()
isDeviceColorSpace
public boolean isDeviceColorSpace()
- Specified by:
isDeviceColorSpace
in interface PDFColorSpace
- See Also:
PDFColorSpace.isDeviceColorSpace()
isRGBColorSpace
public boolean isRGBColorSpace()
- Specified by:
isRGBColorSpace
in interface PDFColorSpace
- See Also:
PDFColorSpace.isRGBColorSpace()
isCMYKColorSpace
public boolean isCMYKColorSpace()
- Specified by:
isCMYKColorSpace
in interface PDFColorSpace
- See Also:
PDFColorSpace.isCMYKColorSpace()
isGrayColorSpace
public boolean isGrayColorSpace()
- Specified by:
isGrayColorSpace
in interface PDFColorSpace
- See Also:
PDFColorSpace.isGrayColorSpace()
toPDFString
protected java.lang.String toPDFString()
- Description copied from class:
PDFObject
- 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.
- Overrides:
toPDFString
in class PDFObject
- See Also:
PDFObject.toPDFString()
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.