Package com.itextpdf.text.pdf
Class PdfSpotColor
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfSpotColor
-
- All Implemented Interfaces:
ICachedColorSpace
,IPdfSpecialColorSpace
public class PdfSpotColor extends java.lang.Object implements ICachedColorSpace, IPdfSpecialColorSpace
APdfSpotColor
defines a ColorSpace- See Also:
PdfDictionary
-
-
Field Summary
Fields Modifier and Type Field Description ColorDetails
altColorDetails
BaseColor
altcs
The alternative color spacePdfName
name
The color name
-
Constructor Summary
Constructors Constructor Description PdfSpotColor(java.lang.String name, BaseColor altcs)
Constructs a newPdfSpotColor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
BaseColor
getAlternativeCS()
Gets the alternative ColorSpace.ColorDetails[]
getColorantDetails(PdfWriter writer)
PdfName
getName()
PdfObject
getPdfObject(PdfWriter writer)
protected PdfObject
getSpotObject(PdfWriter writer)
Deprecated.int
hashCode()
-
-
-
Field Detail
-
name
public PdfName name
The color name
-
altcs
public BaseColor altcs
The alternative color space
-
altColorDetails
public ColorDetails altColorDetails
-
-
Constructor Detail
-
PdfSpotColor
public PdfSpotColor(java.lang.String name, BaseColor altcs)
Constructs a newPdfSpotColor
.- Parameters:
name
- a String valuealtcs
- an alternative colorspace value
-
-
Method Detail
-
getColorantDetails
public ColorDetails[] getColorantDetails(PdfWriter writer)
- Specified by:
getColorantDetails
in interfaceIPdfSpecialColorSpace
-
getAlternativeCS
public BaseColor getAlternativeCS()
Gets the alternative ColorSpace.- Returns:
- a BaseColor
-
getName
public PdfName getName()
-
getPdfObject
public PdfObject getPdfObject(PdfWriter writer)
- Specified by:
getPdfObject
in interfaceICachedColorSpace
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfaceICachedColorSpace
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceICachedColorSpace
- Overrides:
hashCode
in classjava.lang.Object
-
-