]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
rendering for foreign object
authorKeiron Liddle <keiron@apache.org>
Thu, 3 Aug 2000 05:08:32 +0000 (05:08 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 3 Aug 2000 05:08:32 +0000 (05:08 +0000)
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
src/org/apache/fop/render/awt/AWTRenderer.java
src/org/apache/fop/render/xml/XMLRenderer.java

index ee45697333490af2c7abbb24d1956524d3d6b09e..7be02db7455c06fc7bf1ed3051edfe9df6f0fec6 100644 (file)
@@ -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);
 
index 1d0f8a52fe14a1a0676f270aeac27d33a3599944..3ee58664f03da818c64c13aed6bab4a8eb2337bd 100644 (file)
@@ -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;
index 672c58e757151172e3f049d61ecb540ed8bbeb93..92dcbd5753f6c7e042c80794ed9f580c04369c8f 100644 (file)
@@ -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
      *