org.apache.fop.svg
Class PDFImageElementBridge
SVGImageElementBridge
org.apache.fop.svg.PDFImageElementBridge
public class PDFImageElementBridge
extends SVGImageElementBridge
Bridge class for the <image> element when jpeg images.
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.
|
PDFImageElementBridge
public PDFImageElementBridge()
Constructs a new bridge for the <image> element.
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.
ctx
- the bridge contextimageElement
- the svg element for the imagepurl
- the parsed url for the image resource
superCreateGraphicsNode
protected GraphicsNode superCreateGraphicsNode(BridgeContext ctx,
Element imageElement,
ParsedURL purl)
Calls the superclass' createImageGraphicNode() method to create the normal GraphicsNode.
ctx
- the bridge contextimageElement
- the image elementpurl
- the parsed URL
- the newly created graphics node
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(BridgeContext, Element)
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.