com.lowagie.text.pdf

Class ColorDetails

class ColorDetails extends Object

Each spotcolor in the document will have an instance of this class

Author: Phillip Pan (phillip@formstar.com)

Field Summary
PdfNamecolorName
The color name that appears in the document body stream
PdfIndirectReferenceindirectReference
The indirect reference to this color
PdfSpotColorspotcolor
The color
Constructor Summary
ColorDetails(PdfName colorName, PdfIndirectReference indirectReference, PdfSpotColor scolor)
Each spot color used in a document has an instance of this class.
Method Summary
PdfNamegetColorName()
Gets the color name as it appears in the document body.
PdfIndirectReferencegetIndirectReference()
Gets the indirect reference to this color.
PdfObjectgetSpotColor(PdfWriter writer)
Gets the SpotColor object.

Field Detail

colorName

PdfName colorName
The color name that appears in the document body stream

indirectReference

PdfIndirectReference indirectReference
The indirect reference to this color

spotcolor

PdfSpotColor spotcolor
The color

Constructor Detail

ColorDetails

ColorDetails(PdfName colorName, PdfIndirectReference indirectReference, PdfSpotColor scolor)
Each spot color used in a document has an instance of this class.

Parameters: colorName the color name indirectReference the indirect reference to the font scolor the PDfSpotColor

Method Detail

getColorName

PdfName getColorName()
Gets the color name as it appears in the document body.

Returns: the color name

getIndirectReference

PdfIndirectReference getIndirectReference()
Gets the indirect reference to this color.

Returns: the indirect reference to this color

getSpotColor

PdfObject getSpotColor(PdfWriter writer)
Gets the SpotColor object.

Returns: the PdfSpotColor