From: Adrian Cumiskey Date: Wed, 19 Nov 2008 13:51:25 +0000 (+0000) Subject: Method signature wrong, was using super class implementation. X-Git-Tag: fop-1_0~376^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=13992fd89fac85aa890b253468a405c3609c322c;p=xmlgraphics-fop.git Method signature wrong, was using super class implementation. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@718958 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/afp/AFPImageHandlerXML.java b/src/java/org/apache/fop/render/afp/AFPImageHandlerXML.java index fee355da7..b7345811a 100644 --- a/src/java/org/apache/fop/render/afp/AFPImageHandlerXML.java +++ b/src/java/org/apache/fop/render/afp/AFPImageHandlerXML.java @@ -19,15 +19,13 @@ package org.apache.fop.render.afp; -import java.awt.Point; -import java.awt.Rectangle; +import java.awt.geom.Rectangle2D; import java.io.IOException; import java.util.Map; import org.apache.fop.afp.AFPDataObjectInfo; import org.apache.fop.render.RendererContext; import org.apache.fop.render.RendererContextConstants; -import org.apache.xmlgraphics.image.loader.Image; import org.apache.xmlgraphics.image.loader.ImageFlavor; import org.apache.xmlgraphics.image.loader.impl.ImageXMLDOM; import org.w3c.dom.Document; @@ -46,15 +44,16 @@ public class AFPImageHandlerXML extends AFPImageHandler { }; /** {@inheritDoc} */ - public AFPDataObjectInfo generateDataObjectInfo(RendererContext context, Image image, - Point origin, Rectangle pos) + public AFPDataObjectInfo generateDataObjectInfo(AFPRendererImageInfo rendererImageInfo) throws IOException { - AFPRenderer renderer = (AFPRenderer)context.getRenderer(); - ImageXMLDOM imgXML = (ImageXMLDOM)image; + RendererContext rendererContext = rendererImageInfo.getRendererContext(); + AFPRenderer renderer = (AFPRenderer)rendererContext.getRenderer(); + ImageXMLDOM imgXML = (ImageXMLDOM)rendererImageInfo.getImage(); Document doc = imgXML.getDocument(); String ns = imgXML.getRootNamespace(); - Map foreignAttributes = (Map)context.getProperty( + Map foreignAttributes = (Map)rendererContext.getProperty( RendererContextConstants.FOREIGN_ATTRIBUTES); + Rectangle2D pos = rendererImageInfo.getPosition(); renderer.renderDocument(doc, ns, pos, foreignAttributes); return null; }