From 63964ec34792e3aacf35120a2d27844aa61bc49c Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 3 Aug 2000 05:08:32 +0000 Subject: [PATCH] rendering for foreign object git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193588 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/Renderer.java | 3 +++ src/org/apache/fop/render/awt/AWTRenderer.java | 7 +++++++ src/org/apache/fop/render/xml/XMLRenderer.java | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/src/org/apache/fop/render/Renderer.java b/src/org/apache/fop/render/Renderer.java index ee4569733..7be02db74 100644 --- a/src/org/apache/fop/render/Renderer.java +++ b/src/org/apache/fop/render/Renderer.java @@ -89,6 +89,9 @@ public interface Renderer { /** render the given SVG area */ public void renderSVGArea(SVGArea area); + /** render a foreign object area */ + public void renderForeignObjectArea(ForeignObjectArea area); + /** render the given image area */ public void renderImageArea(ImageArea area); diff --git a/src/org/apache/fop/render/awt/AWTRenderer.java b/src/org/apache/fop/render/awt/AWTRenderer.java index 1d0f8a52f..3ee58664f 100644 --- a/src/org/apache/fop/render/awt/AWTRenderer.java +++ b/src/org/apache/fop/render/awt/AWTRenderer.java @@ -591,6 +591,13 @@ public class AWTRenderer implements Renderer, Printable, Pageable { } + /** render a foreign object area */ + public void renderForeignObjectArea(ForeignObjectArea area) + { + // if necessary need to scale and align the content + area.getObject().render(this); + } + public void renderSVGArea(SVGArea area) { int x = this.currentAreaContainerXPosition; int y = this.currentYPosition; diff --git a/src/org/apache/fop/render/xml/XMLRenderer.java b/src/org/apache/fop/render/xml/XMLRenderer.java index 672c58e75..92dcbd575 100644 --- a/src/org/apache/fop/render/xml/XMLRenderer.java +++ b/src/org/apache/fop/render/xml/XMLRenderer.java @@ -217,6 +217,13 @@ public class XMLRenderer implements Renderer { + space.getSize() +"\"/>"); } + /** render a foreign object area */ + public void renderForeignObjectArea(ForeignObjectArea area) + { + // if necessary need to scale and align the content + area.getObject().render(this); + } + /** * render an SVG area to XML * -- 2.39.5