fop 0.93

org.apache.fop.svg
Class PDFImageElementBridge.PDFJpegNode

java.lang.Object
  extended byorg.apache.batik.gvt.AbstractGraphicsNode
      extended byorg.apache.fop.svg.PDFImageElementBridge.PDFJpegNode
All Implemented Interfaces:
org.apache.batik.gvt.GraphicsNode
Enclosing class:
PDFImageElementBridge

public class PDFImageElementBridge.PDFJpegNode
extends org.apache.batik.gvt.AbstractGraphicsNode

A PDF jpeg node. This holds a jpeg image so that it can be drawn into the PDFGraphics2D.


Field Summary
 
Fields inherited from class org.apache.batik.gvt.AbstractGraphicsNode
changeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRef
 
Fields inherited from interface org.apache.batik.gvt.GraphicsNode
ALL, FILL, IDENTITY, NONE, PAINTED, STROKE, VISIBLE, VISIBLE_FILL, VISIBLE_PAINTED, VISIBLE_STROKE
 
Constructor Summary
PDFImageElementBridge.PDFJpegNode(JpegImage j, org.apache.batik.bridge.BridgeContext ctx, org.w3c.dom.Element imageElement, org.apache.batik.util.ParsedURL purl)
          Create a new pdf jpeg node for drawing jpeg images into pdf graphics.
 
Method Summary
 java.awt.geom.Rectangle2D getGeometryBounds()
          Get the geometrix bounds of the image.
 java.awt.Shape getOutline()
          Get the outline of this image.
 java.awt.geom.Rectangle2D getPrimitiveBounds()
          Get the primitive bounds of this bridge element.
 java.awt.geom.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(java.awt.Graphics2D g2d)
          Paint this jpeg image.
 
Methods inherited from class org.apache.batik.gvt.AbstractGraphicsNode
contains, fireGraphicsNodeChangeCompleted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, getBounds, getClip, getComposite, getEnableBackgroundGraphicsNodeRable, getFilter, getGlobalTransform, getGraphicsNodeRable, getInverseTransform, getMask, getParent, getPointerEventType, getRenderingHints, getRoot, getTransform, getTransformedBounds, getTransformedGeometryBounds, getTransformedPrimitiveBounds, getTransformedSensitiveBounds, getWeakReference, intersects, invalidateGeometryCache, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, nodeHitAt, normalizeRectangle, paint, setClip, setComposite, setFilter, setMask, setParent, setPointerEventType, setRenderingHint, setRenderingHints, setRenderingHints, setRoot, setTransform, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFImageElementBridge.PDFJpegNode

public PDFImageElementBridge.PDFJpegNode(JpegImage j,
                                         org.apache.batik.bridge.BridgeContext ctx,
                                         org.w3c.dom.Element imageElement,
                                         org.apache.batik.util.ParsedURL purl)
Create a new pdf jpeg node for drawing jpeg images into pdf graphics.

Parameters:
j - the jpeg image
ctx - the bridge context
imageElement - the SVG image element
purl - the URL to the image
Method Detail

getOutline

public java.awt.Shape getOutline()
Get the outline of this image.

Returns:
the outline shape which is the primitive bounds

primitivePaint

public void primitivePaint(java.awt.Graphics2D g2d)
Paint this jpeg image. As this is used for inserting jpeg into pdf it adds the jpeg image to the PDFGraphics2D.

Parameters:
g2d - the graphics to draw the image on

getGeometryBounds

public java.awt.geom.Rectangle2D getGeometryBounds()
Get the geometrix bounds of the image.

Returns:
the primitive bounds

getPrimitiveBounds

public java.awt.geom.Rectangle2D getPrimitiveBounds()
Get the primitive bounds of this bridge element.

Returns:
the bounds of the jpeg image

getSensitiveBounds

public java.awt.geom.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.

Returns:
the bounds of the sensitive area

fop 0.93

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