Package org.apache.fop.pdf
Class PDFCIELabColorSpace
- java.lang.Object
-
- org.apache.fop.pdf.PDFObject
-
- org.apache.fop.pdf.PDFArray
-
- org.apache.fop.pdf.PDFCIELabColorSpace
-
- All Implemented Interfaces:
PDFColorSpace
,PDFWritable
public class PDFCIELabColorSpace extends PDFArray implements PDFColorSpace
This class represents a "CIE L*a*b*" color space. It is expected that the components have the following ranges: L* [0..100], a* and b* [-127..127]
-
-
Constructor Summary
Constructors Constructor Description PDFCIELabColorSpace(float[] whitePoint, float[] blackPoint)
Creates a new "CIE L*a*b*" color space.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
int
getNumComponents()
Get the number of color components for this colorspaceboolean
isCMYKColorSpace()
boolean
isDeviceColorSpace()
boolean
isGrayColorSpace()
boolean
isRGBColorSpace()
private PDFArray
toPDFArray(java.lang.String name, float[] whitePoint)
-
Methods inherited from class org.apache.fop.pdf.PDFArray
add, add, clear, contains, get, getChildren, length, output, set, set
-
Methods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
-
-
-
-
Constructor Detail
-
PDFCIELabColorSpace
public PDFCIELabColorSpace(float[] whitePoint, float[] blackPoint)
Creates a new "CIE L*a*b*" color space. Valid value ranges for the white and black point are [0..1] as per the PDF spec.- Parameters:
whitePoint
- the white pointblackPoint
- the optional black point (may be null)
-
-
Method Detail
-
toPDFArray
private PDFArray toPDFArray(java.lang.String name, float[] whitePoint)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacePDFColorSpace
- Returns:
- the name of the color space
-
getNumComponents
public int getNumComponents()
Get the number of color components for this colorspace- Specified by:
getNumComponents
in interfacePDFColorSpace
- Returns:
- the number of components
-
isCMYKColorSpace
public boolean isCMYKColorSpace()
- Specified by:
isCMYKColorSpace
in interfacePDFColorSpace
- Returns:
- true if the color space is an CMYK color space
-
isDeviceColorSpace
public boolean isDeviceColorSpace()
- Specified by:
isDeviceColorSpace
in interfacePDFColorSpace
- Returns:
- true if the color space is a device-dependent color space (like DeviceRGB, DeviceCMYK and DeviceGray)
-
isGrayColorSpace
public boolean isGrayColorSpace()
- Specified by:
isGrayColorSpace
in interfacePDFColorSpace
- Returns:
- true if the color space is an Gray color space
-
isRGBColorSpace
public boolean isRGBColorSpace()
- Specified by:
isRGBColorSpace
in interfacePDFColorSpace
- Returns:
- true if the color space is an RGB color space
-
-