org.apache.fop.pdf
Class PDFICCBasedColorSpace
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFICCBasedColorSpace
- All Implemented Interfaces:
- PDFColorSpace, PDFWritable
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, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, 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
- Returns:
- the number of components
- See Also:
PDFColorSpace.getNumComponents()
getName
public java.lang.String getName()
- Specified by:
getName
in interface PDFColorSpace
- Returns:
- the name of the color space
- See Also:
PDFColorSpace.getName()
isDeviceColorSpace
public boolean isDeviceColorSpace()
- Specified by:
isDeviceColorSpace
in interface PDFColorSpace
- Returns:
- true if the color space is a device-dependent color space (like DeviceRGB,
DeviceCMYK and DeviceGray)
- See Also:
PDFColorSpace.isDeviceColorSpace()
isRGBColorSpace
public boolean isRGBColorSpace()
- Specified by:
isRGBColorSpace
in interface PDFColorSpace
- Returns:
- true if the color space is an RGB color space
- See Also:
PDFColorSpace.isRGBColorSpace()
isCMYKColorSpace
public boolean isCMYKColorSpace()
- Specified by:
isCMYKColorSpace
in interface PDFColorSpace
- Returns:
- true if the color space is an CMYK color space
- See Also:
PDFColorSpace.isCMYKColorSpace()
isGrayColorSpace
public boolean isGrayColorSpace()
- Specified by:
isGrayColorSpace
in interface PDFColorSpace
- Returns:
- true if the color space is an Gray color space
- 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
- Returns:
- String the String representation
- See Also:
PDFObject.toPDFString()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.