diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-21 14:17:06 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-21 14:17:06 +0000 |
commit | c3163d170fca3666ef270d4612f78377e88a3880 (patch) | |
tree | bf3d6203b61a4c16c54737920e566a9bbdbd7229 /src/java/org/apache | |
parent | 850a3eabff92341da637c0b343bfa9d31c26fe44 (diff) | |
download | xmlgraphics-fop-c3163d170fca3666ef270d4612f78377e88a3880.tar.gz xmlgraphics-fop-c3163d170fca3666ef270d4612f78377e88a3880.zip |
Rename PSXMLHandler to what it really is: an SVGHandler.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234206 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSRenderer.java | 14 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSSVGHandler.java (renamed from src/java/org/apache/fop/render/ps/PSXMLHandler.java) | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java index 7413f7717..ef684b582 100644 --- a/src/java/org/apache/fop/render/ps/PSRenderer.java +++ b/src/java/org/apache/fop/render/ps/PSRenderer.java @@ -111,7 +111,7 @@ public class PSRenderer extends AbstractPathOrientedRenderer { */ public void setUserAgent(FOUserAgent agent) { super.setUserAgent(agent); - PSXMLHandler xmlHandler = new PSXMLHandler(); + PSSVGHandler xmlHandler = new PSSVGHandler(); userAgent.getXMLHandlerRegistry().addXMLHandler(xmlHandler); } @@ -853,15 +853,15 @@ public class PSRenderer extends AbstractPathOrientedRenderer { context = new RendererContext(this, MIME_TYPE); context.setUserAgent(userAgent); - context.setProperty(PSXMLHandler.PS_GENERATOR, this.gen); - context.setProperty(PSXMLHandler.PS_FONT_INFO, fontInfo); - context.setProperty(PSXMLHandler.PS_WIDTH, + context.setProperty(PSSVGHandler.PS_GENERATOR, this.gen); + context.setProperty(PSSVGHandler.PS_FONT_INFO, fontInfo); + context.setProperty(PSSVGHandler.PS_WIDTH, new Integer((int) pos.getWidth())); - context.setProperty(PSXMLHandler.PS_HEIGHT, + context.setProperty(PSSVGHandler.PS_HEIGHT, new Integer((int) pos.getHeight())); - context.setProperty(PSXMLHandler.PS_XPOS, + context.setProperty(PSSVGHandler.PS_XPOS, new Integer(currentIPPosition + (int) pos.getX())); - context.setProperty(PSXMLHandler.PS_YPOS, + context.setProperty(PSSVGHandler.PS_YPOS, new Integer(currentBPPosition + (int) pos.getY())); //context.setProperty("strokeSVGText", options.get("strokeSVGText")); diff --git a/src/java/org/apache/fop/render/ps/PSXMLHandler.java b/src/java/org/apache/fop/render/ps/PSSVGHandler.java index 8c1fa1b3e..27c9de0cf 100644 --- a/src/java/org/apache/fop/render/ps/PSXMLHandler.java +++ b/src/java/org/apache/fop/render/ps/PSSVGHandler.java @@ -54,12 +54,12 @@ import org.apache.commons.logging.LogFactory; * @author <a href="mailto:fop-dev@xml.apache.org">Apache XML FOP Development Team</a> * @version $Id$ */ -public class PSXMLHandler implements XMLHandler { +public class PSSVGHandler implements XMLHandler { /** * logging instance */ - private Log log = LogFactory.getLog(PSXMLHandler.class); + private Log log = LogFactory.getLog(PSSVGHandler.class); /** * The PostScript generator that is being used to drawn into. @@ -94,7 +94,7 @@ public class PSXMLHandler implements XMLHandler { /** * Create a new PostScript XML handler for use by the PostScript renderer. */ - public PSXMLHandler() { + public PSSVGHandler() { } /** @see org.apache.fop.render.XMLHandler */ |