Package org.apache.fop.pdf
Class PDFSeparationColorSpace
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFArray
org.apache.fop.pdf.PDFSeparationColorSpace
- All Implemented Interfaces:
PDFColorSpace,PDFWritable
This class represents a "Separation" color space. It is used in FOP to map named colors.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPDFSeparationColorSpace(String colorName, PDFFunction tintFunction) Creates a new "Separation" color space. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the colorant.getName()intGet the number of color components for this colorspaceReturns a reference to the tint function that is used as a fallback if the colorant is not available.booleanbooleanbooleanbooleanMethods inherited from class org.apache.fop.pdf.PDFArray
add, add, clear, contains, get, getChildren, length, output, set, setMethods 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 Details
-
PDFSeparationColorSpace
Creates a new "Separation" color space.- Parameters:
colorName- the name of the coloranttintFunction- the tint function used as fallback
-
-
Method Details
-
getName
- Specified by:
getNamein interfacePDFColorSpace- Returns:
- the name of the color space
-
getColorName
Returns the name of the colorant.- Returns:
- the name of the colorant
-
getTintFunction
Returns a reference to the tint function that is used as a fallback if the colorant is not available.- Returns:
- a reference to the tint function
-
getNumComponents
public int getNumComponents()Get the number of color components for this colorspace- Specified by:
getNumComponentsin interfacePDFColorSpace- Returns:
- the number of components
-
isCMYKColorSpace
public boolean isCMYKColorSpace()- Specified by:
isCMYKColorSpacein interfacePDFColorSpace- Returns:
- true if the color space is an CMYK color space
-
isDeviceColorSpace
public boolean isDeviceColorSpace()- Specified by:
isDeviceColorSpacein interfacePDFColorSpace- Returns:
- true if the color space is a device-dependent color space (like DeviceRGB, DeviceCMYK and DeviceGray)
-
isGrayColorSpace
public boolean isGrayColorSpace()- Specified by:
isGrayColorSpacein interfacePDFColorSpace- Returns:
- true if the color space is an Gray color space
-
isRGBColorSpace
public boolean isRGBColorSpace()- Specified by:
isRGBColorSpacein interfacePDFColorSpace- Returns:
- true if the color space is an RGB color space
-