Package com.itextpdf.text.pdf
Class PdfSpotColor
java.lang.Object
com.itextpdf.text.pdf.PdfSpotColor
- All Implemented Interfaces:
ICachedColorSpace
,IPdfSpecialColorSpace
A
PdfSpotColor
defines a ColorSpace- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe alternative color spaceThe color name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the alternative ColorSpace.getColorantDetails
(PdfWriter writer) getName()
getPdfObject
(PdfWriter writer) protected PdfObject
getSpotObject
(PdfWriter writer) Deprecated.int
hashCode()
-
Field Details
-
name
The color name -
altcs
The alternative color space -
altColorDetails
-
-
Constructor Details
-
PdfSpotColor
Constructs a newPdfSpotColor
.- Parameters:
name
- a String valuealtcs
- an alternative colorspace value
-
-
Method Details
-
getColorantDetails
- Specified by:
getColorantDetails
in interfaceIPdfSpecialColorSpace
-
getAlternativeCS
Gets the alternative ColorSpace.- Returns:
- a BaseColor
-
getName
-
getSpotObject
Deprecated. -
getPdfObject
- Specified by:
getPdfObject
in interfaceICachedColorSpace
-
equals
- Specified by:
equals
in interfaceICachedColorSpace
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceICachedColorSpace
- Overrides:
hashCode
in classObject
-