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
APdfSpotColordefines a ColorSpace- See Also:
PdfDictionary
-
-
Field Summary
Fields Modifier and Type Field Description ColorDetailsaltColorDetailsBaseColoraltcsThe alternative color spacePdfNamenameThe 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 booleanequals(java.lang.Object o)BaseColorgetAlternativeCS()Gets the alternative ColorSpace.ColorDetails[]getColorantDetails(PdfWriter writer)PdfNamegetName()PdfObjectgetPdfObject(PdfWriter writer)protected PdfObjectgetSpotObject(PdfWriter writer)Deprecated.inthashCode()
-
-
-
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:
getColorantDetailsin interfaceIPdfSpecialColorSpace
-
getAlternativeCS
public BaseColor getAlternativeCS()
Gets the alternative ColorSpace.- Returns:
- a BaseColor
-
getName
public PdfName getName()
-
getPdfObject
public PdfObject getPdfObject(PdfWriter writer)
- Specified by:
getPdfObjectin interfaceICachedColorSpace
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfaceICachedColorSpace- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceICachedColorSpace- Overrides:
hashCodein classjava.lang.Object
-
-