aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2000-08-03 05:08:32 +0000
committerKeiron Liddle <keiron@apache.org>2000-08-03 05:08:32 +0000
commit63964ec34792e3aacf35120a2d27844aa61bc49c (patch)
tree426b577cec1c898a8c7b0eccaaa497c7d4b31e53 /src/org/apache/fop/render
parentb02467ab07fe3fa1afa7b7affe7de5f5634ebbbe (diff)
downloadxmlgraphics-fop-63964ec34792e3aacf35120a2d27844aa61bc49c.tar.gz
xmlgraphics-fop-63964ec34792e3aacf35120a2d27844aa61bc49c.zip
rendering for foreign object
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render')
-rw-r--r--src/org/apache/fop/render/Renderer.java3
-rw-r--r--src/org/apache/fop/render/awt/AWTRenderer.java7
-rw-r--r--src/org/apache/fop/render/xml/XMLRenderer.java7
3 files changed, 17 insertions, 0 deletions
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
*