public class PDFSeparationColorSpace extends PDFArray implements PDFColorSpace
Constructor and Description |
---|
PDFSeparationColorSpace(java.lang.String colorName,
PDFFunction tintFunction)
Creates a new "Separation" color space.
|
Modifier and Type | Method and Description |
---|---|
PDFName |
getColorName()
Returns the name of the colorant.
|
java.lang.String |
getName() |
int |
getNumComponents()
Get the number of color components for this colorspace
|
PDFReference |
getTintFunction()
Returns a reference to the tint function that is used as a fallback if the colorant is
not available.
|
boolean |
isCMYKColorSpace() |
boolean |
isDeviceColorSpace() |
boolean |
isGrayColorSpace() |
boolean |
isRGBColorSpace() |
add, add, clear, contains, get, getChildren, length, output, set, set
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
public PDFSeparationColorSpace(java.lang.String colorName, PDFFunction tintFunction)
colorName
- the name of the coloranttintFunction
- the tint function used as fallbackpublic java.lang.String getName()
getName
in interface PDFColorSpace
public PDFName getColorName()
public PDFReference getTintFunction()
public int getNumComponents()
getNumComponents
in interface PDFColorSpace
public boolean isCMYKColorSpace()
isCMYKColorSpace
in interface PDFColorSpace
public boolean isDeviceColorSpace()
isDeviceColorSpace
in interface PDFColorSpace
public boolean isGrayColorSpace()
isGrayColorSpace
in interface PDFColorSpace
public boolean isRGBColorSpace()
isRGBColorSpace
in interface PDFColorSpace
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.