org.apache.fop.svg

Class PDFImageElementBridge


public class PDFImageElementBridge
extends SVGImageElementBridge

Bridge class for the <image> element when jpeg images.
Author:
Keiron Liddle

Nested Class Summary

class
PDFImageElementBridge.Graphics2DNode
A node that holds a Graphics2D image.
class
PDFImageElementBridge.LoaderImageNode
An image node for natively handled Image instance.

Constructor Summary

PDFImageElementBridge()
Constructs a new bridge for the <image> element.

Method Summary

protected GraphicsNode
createImageGraphicsNode(BridgeContext ctx, Element imageElement, ParsedURL purl)
Create the raster image node.
protected GraphicsNode
superCreateGraphicsNode(BridgeContext ctx, Element imageElement, ParsedURL purl)
Calls the superclass' createImageGraphicNode() method to create the normal GraphicsNode.

Constructor Details

PDFImageElementBridge

public PDFImageElementBridge()
Constructs a new bridge for the <image> element.

Method Details

createImageGraphicsNode

protected GraphicsNode createImageGraphicsNode(BridgeContext ctx,
                                               Element imageElement,
                                               ParsedURL purl)
Create the raster image node. THis checks if it is a jpeg file and creates a jpeg node so the jpeg can be inserted directly into the pdf document.
Parameters:
ctx - the bridge context
imageElement - the svg element for the image
purl - the parsed url for the image resource
Returns:
a new graphics node

superCreateGraphicsNode

protected GraphicsNode superCreateGraphicsNode(BridgeContext ctx,
                                               Element imageElement,
                                               ParsedURL purl)
Calls the superclass' createImageGraphicNode() method to create the normal GraphicsNode.
Parameters:
ctx - the bridge context
imageElement - the image element
purl - the parsed URL
Returns:
the newly created graphics node
See Also:
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(BridgeContext, Element)

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.