org.apache.fop.svg
Class PDFImageElementBridge.PDFJpegNode
AbstractGraphicsNode
org.apache.fop.svg.PDFImageElementBridge.PDFJpegNode
- PDFImageElementBridge
public class PDFImageElementBridge.PDFJpegNode
extends AbstractGraphicsNode
A PDF jpeg node.
This holds a jpeg image so that it can be drawn into
the PDFGraphics2D.
PDFJpegNode(JpegImage j, BridgeContext ctx, Element imageElement, ParsedURL purl) - Create a new pdf jpeg node for drawing jpeg images
into pdf graphics.
|
Rectangle2D | getGeometryBounds() - Get the geometrix bounds of the image.
|
Shape | getOutline() - Get the outline of this image.
|
Rectangle2D | getPrimitiveBounds() - Get the primitive bounds of this bridge element.
|
Rectangle2D | getSensitiveBounds() - Returns the bounds of the sensitive area covered by this node,
This includes the stroked area but does not include the effects
of clipping, masking or filtering.
|
void | primitivePaint(Graphics2D g2d) - Paint this jpeg image.
|
PDFJpegNode
public PDFJpegNode(JpegImage j,
BridgeContext ctx,
Element imageElement,
ParsedURL purl)
Create a new pdf jpeg node for drawing jpeg images
into pdf graphics.
j
- the jpeg imagectx
- the bridge contextimageElement
- the SVG image elementpurl
- the URL to the image
getGeometryBounds
public Rectangle2D getGeometryBounds()
Get the geometrix bounds of the image.
getOutline
public Shape getOutline()
Get the outline of this image.
- the outline shape which is the primitive bounds
getPrimitiveBounds
public Rectangle2D getPrimitiveBounds()
Get the primitive bounds of this bridge element.
- the bounds of the jpeg image
getSensitiveBounds
public Rectangle2D getSensitiveBounds()
Returns the bounds of the sensitive area covered by this node,
This includes the stroked area but does not include the effects
of clipping, masking or filtering.
- the bounds of the sensitive area
primitivePaint
public void primitivePaint(Graphics2D g2d)
Paint this jpeg image.
As this is used for inserting jpeg into pdf
it adds the jpeg image to the PDFGraphics2D.
g2d
- the graphics to draw the image on
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.