diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-07-26 13:25:15 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-07-26 13:25:15 +0000 |
commit | 2393e093c86a66d9e30d12ab27b4e5429f753979 (patch) | |
tree | 21d7e319b3040c21b4fed7af37b401f3813d8876 /src/java/org/apache/fop/render | |
parent | 48103977ccb047eb639259a393719db804f4e297 (diff) | |
download | xmlgraphics-fop-2393e093c86a66d9e30d12ab27b4e5429f753979.tar.gz xmlgraphics-fop-2393e093c86a66d9e30d12ab27b4e5429f753979.zip |
Small improvements. Fix for missing image areas.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225302 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r-- | src/java/org/apache/fop/render/xml/XMLRenderer.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java index 60b4ee4a8..e072fade3 100644 --- a/src/java/org/apache/fop/render/xml/XMLRenderer.java +++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java @@ -524,19 +524,21 @@ public class XMLRenderer extends AbstractRenderer { protected void renderViewport(Viewport viewport) { atts.clear(); addAreaAttributes(viewport); + addTraitAttributes(viewport); startElement("viewport", atts); super.renderViewport(viewport); endElement("viewport"); } /** - * Renders an image - * @param image the image + * @see org.apache.fop.render.AbstractRenderer */ - public void renderImage(Image image) { + public void renderImage(Image image, Rectangle2D pos) { atts.clear(); addAreaAttributes(image); + addTraitAttributes(image); addAttribute("url", image.getURL()); + addAttribute("pos", pos); startElement("image", atts); endElement("image"); } @@ -557,6 +559,7 @@ public class XMLRenderer extends AbstractRenderer { public void renderForeignObject(ForeignObject fo, Rectangle2D pos) { atts.clear(); addAreaAttributes(fo); + addTraitAttributes(fo); startElement("foreignObject", atts); Document doc = fo.getDocument(); String ns = fo.getNameSpace(); |