com.itextpdf.text.pdf
Class PdfSpotColor

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfSpotColor
All Implemented Interfaces:
ICachedColorSpace, IPdfSpecialColorSpace

public class PdfSpotColor
extends Object
implements ICachedColorSpace, IPdfSpecialColorSpace

A PdfSpotColor defines a ColorSpace

See Also:
PdfDictionary

Field Summary
 com.itextpdf.text.pdf.ColorDetails altColorDetails
           
 BaseColor altcs
          The alternative color space
 PdfName name
          The color name
 
Constructor Summary
PdfSpotColor(String name, BaseColor altcs)
          Constructs a new PdfSpotColor.
 
Method Summary
 boolean equals(Object o)
           
 BaseColor getAlternativeCS()
          Gets the alternative ColorSpace.
 com.itextpdf.text.pdf.ColorDetails[] getColorantDetails(PdfWriter writer)
           
 PdfName getName()
           
 PdfObject getPdfObject(PdfWriter writer)
           
protected  PdfObject getSpotObject(PdfWriter writer)
          Deprecated. 
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public PdfName name
The color name


altcs

public BaseColor altcs
The alternative color space


altColorDetails

public com.itextpdf.text.pdf.ColorDetails altColorDetails
Constructor Detail

PdfSpotColor

public PdfSpotColor(String name,
                    BaseColor altcs)
Constructs a new PdfSpotColor.

Parameters:
name - a String value
altcs - an alternative colorspace value
Method Detail

getColorantDetails

public com.itextpdf.text.pdf.ColorDetails[] getColorantDetails(PdfWriter writer)
Specified by:
getColorantDetails in interface IPdfSpecialColorSpace

getAlternativeCS

public BaseColor getAlternativeCS()
Gets the alternative ColorSpace.

Returns:
a BaseColor

getName

public PdfName getName()

getSpotObject

@Deprecated
protected PdfObject getSpotObject(PdfWriter writer)
Deprecated. 


getPdfObject

public PdfObject getPdfObject(PdfWriter writer)
Specified by:
getPdfObject in interface ICachedColorSpace

equals

public boolean equals(Object o)
Specified by:
equals in interface ICachedColorSpace
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface ICachedColorSpace
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.