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 TypeMethodDescriptionbooleanGets the alternative ColorSpace.getColorantDetails(PdfWriter writer) getName()getPdfObject(PdfWriter writer) protected PdfObjectgetSpotObject(PdfWriter writer) Deprecated.inthashCode()
-
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:
getColorantDetailsin interfaceIPdfSpecialColorSpace
-
getAlternativeCS
Gets the alternative ColorSpace.- Returns:
- a BaseColor
-
getName
-
getSpotObject
Deprecated. -
getPdfObject
- Specified by:
getPdfObjectin interfaceICachedColorSpace
-
equals
- Specified by:
equalsin interfaceICachedColorSpace- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceICachedColorSpace- Overrides:
hashCodein classObject
-