aboutsummaryrefslogtreecommitdiffstats
path: root/src/sandbox
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-12-13 19:49:16 +0000
committerJeremias Maerki <jeremias@apache.org>2005-12-13 19:49:16 +0000
commitb9c18acdd094acfc29b4619b9785b19aa83d29e1 (patch)
tree051df1d71e14a65234df479f80cdff500746295f /src/sandbox
parent32521d94ac717c6f07f4d45607d1d049c839c42c (diff)
downloadxmlgraphics-fop-b9c18acdd094acfc29b4619b9785b19aa83d29e1.tar.gz
xmlgraphics-fop-b9c18acdd094acfc29b4619b9785b19aa83d29e1.zip
startVPArea() and endVPArea() made abstract in AbstractRenderer so implementors are forced to deal with the topic.
startVPArea() in Renderers now takes an additional parameter for an optional clipping rectangle. PDF, PS and Java2D renderers now perform proper clipping on viewports if requested. Fixed various problems in the Java2D renderer and added border and background painting where still missing. Note that there are several code parts that could be easily shared with the AbstractPathOrientedRenderer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356593 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/sandbox')
-rw-r--r--src/sandbox/org/apache/fop/render/pcl/PCLRenderer.java18
-rw-r--r--src/sandbox/org/apache/fop/render/svg/SVGRenderer.java15
2 files changed, 33 insertions, 0 deletions
diff --git a/src/sandbox/org/apache/fop/render/pcl/PCLRenderer.java b/src/sandbox/org/apache/fop/render/pcl/PCLRenderer.java
index 21048b374..58f4c16fb 100644
--- a/src/sandbox/org/apache/fop/render/pcl/PCLRenderer.java
+++ b/src/sandbox/org/apache/fop/render/pcl/PCLRenderer.java
@@ -20,9 +20,11 @@ package org.apache.fop.render.pcl;
// FOP
import org.apache.fop.apps.MimeConstants;
+import org.apache.fop.area.CTM;
import org.apache.fop.render.PrintRenderer;
// Java
+import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.OutputStream;
@@ -155,6 +157,7 @@ public class PCLRenderer extends PrintRenderer {
}
}
+ /** @see org.apache.fop.render.Renderer#startRenderer(java.io.OutputStream) */
public void startRenderer(OutputStream outputStream) throws IOException {
log.info("rendering areas to PCL");
log.fatal("The PCL Renderer is non-functional at this time. Please help resurrect it!");
@@ -176,6 +179,7 @@ public class PCLRenderer extends PrintRenderer {
currentStream.add("\033" + "9\033&l0E");
}
+ /** @see org.apache.fop.render.Renderer#stopRenderer() */
public void stopRenderer() throws IOException {
}
@@ -184,4 +188,18 @@ public class PCLRenderer extends PrintRenderer {
return MIME_TYPE;
}
+ /**
+ * @see org.apache.fop.render.AbstractRenderer#startVParea(CTM, Rectangle2D)
+ */
+ protected void startVParea(CTM ctm, Rectangle2D clippingRect) {
+ // TODO Auto-generated method stub
+ }
+
+ /**
+ * @see org.apache.fop.render.AbstractRenderer#endVParea()
+ */
+ protected void endVParea() {
+ // TODO Auto-generated method stub
+ }
+
}
diff --git a/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java b/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java
index 7a6109ed9..7a2b182d7 100644
--- a/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java
+++ b/src/sandbox/org/apache/fop/render/svg/SVGRenderer.java
@@ -19,6 +19,7 @@
package org.apache.fop.render.svg;
import org.apache.fop.apps.FOPException;
+import org.apache.fop.area.CTM;
import org.apache.fop.area.PageViewport;
import org.apache.fop.area.LineArea;
import org.apache.fop.area.inline.ForeignObject;
@@ -423,5 +424,19 @@ public class SVGRenderer extends AbstractRenderer implements XMLHandler {
return SVG_NAMESPACE;
}
+ /**
+ * @see org.apache.fop.render.AbstractRenderer#startVParea(CTM, Rectangle2D)
+ */
+ protected void startVParea(CTM ctm, Rectangle2D clippingRect) {
+ // TODO Auto-generated method stub
+ }
+
+ /**
+ * @see org.apache.fop.render.AbstractRenderer#endVParea()
+ */
+ protected void endVParea() {
+ // TODO Auto-generated method stub
+ }
+
}