|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.render.pdf.AbstractImageAdapter
public abstract class AbstractImageAdapter
Abstract PDFImage implementation for the PDF renderer.
| Field Summary | |
|---|---|
protected org.apache.xmlgraphics.image.loader.Image |
image
the image |
| Constructor Summary | |
|---|---|
AbstractImageAdapter(org.apache.xmlgraphics.image.loader.Image image,
java.lang.String key)
Creates a new PDFImage from an Image instance. |
|
| Method Summary | |
|---|---|
void |
disallowMultipleFilters()
Disallows multiple filters. |
protected java.awt.color.ICC_Profile |
getEffectiveICCProfile()
Returns the effective ICC profile for the image. |
int |
getHeight()
Get the image height in pixels. |
PDFICCStream |
getICCStream()
Get the ICC stream for this image. |
protected java.awt.color.ColorSpace |
getImageColorSpace()
Returns the image's color space. |
java.lang.String |
getKey()
Key to look up XObject. |
java.lang.String |
getMask()
Get the PDF reference for a bitmap mask. |
java.lang.String |
getSoftMask()
|
PDFReference |
getSoftMaskReference()
Get the PDF reference for a soft mask. |
PDFColor |
getTransparentColor()
Get the transparent color. |
int |
getWidth()
Get the image width in pixels. |
boolean |
isInverted()
|
boolean |
isPS()
Check if this image is a PostScript image. |
boolean |
isTransparent()
Check if this image has a transparent color transparency. |
boolean |
multipleFiltersAllowed()
Indicates whether multiple image filters are allowed; this is implemented because Adobe Reader does not like multiple FlateDecode filters applied to an image even though that allowed by the PDF spec; this is probable due to security concerns since many PDF malware exploits, like zip bombs, make use of a chain of FlateDecode filters. |
void |
populateXObjectDictionary(PDFDictionary dict)
Populates the XObject's dictionary with additional values. |
protected void |
populateXObjectDictionaryForIndexColorModel(PDFDictionary dict,
java.awt.image.IndexColorModel icm)
This is to be used by populateXObjectDictionary() when the image is palette based. |
void |
setup(PDFDocument doc)
Setup the PDF image for the current document. |
static PDFDeviceColorSpace |
toPDFColorSpace(java.awt.color.ColorSpace cs)
Converts a ColorSpace object to a PDFColorSpace object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.fop.pdf.PDFImage |
|---|
getBitsPerComponent, getColorSpace, getFilterHint, getPDFFilter, outputContents |
| Field Detail |
|---|
protected org.apache.xmlgraphics.image.loader.Image image
| Constructor Detail |
|---|
public AbstractImageAdapter(org.apache.xmlgraphics.image.loader.Image image,
java.lang.String key)
image - the imagekey - XObject key| Method Detail |
|---|
public java.lang.String getKey()
getKey in interface PDFImageprotected java.awt.color.ColorSpace getImageColorSpace()
public void setup(PDFDocument doc)
setup in interface PDFImagedoc - the PDF parent document
(todo) Remove this and delegate to the XObjectprotected java.awt.color.ICC_Profile getEffectiveICCProfile()
public int getWidth()
getWidth in interface PDFImagepublic int getHeight()
getHeight in interface PDFImagepublic boolean isTransparent()
isTransparent in interface PDFImagepublic PDFColor getTransparentColor()
getTransparentColor in interface PDFImagepublic java.lang.String getMask()
getMask in interface PDFImagepublic java.lang.String getSoftMask()
public PDFReference getSoftMaskReference()
getSoftMaskReference in interface PDFImagepublic boolean isInverted()
isInverted in interface PDFImagepublic boolean isPS()
isPS in interface PDFImagepublic PDFICCStream getICCStream()
getICCStream in interface PDFImagepublic void populateXObjectDictionary(PDFDictionary dict)
populateXObjectDictionary in interface PDFImagedict - the dictionary to fill
protected void populateXObjectDictionaryForIndexColorModel(PDFDictionary dict,
java.awt.image.IndexColorModel icm)
dict - the dictionary to fill inicm - the image color modelpublic static PDFDeviceColorSpace toPDFColorSpace(java.awt.color.ColorSpace cs)
cs - ColorSpace instance
public boolean multipleFiltersAllowed()
multipleFiltersAllowed in interface PDFImagepublic void disallowMultipleFilters()
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||