diff options
author | Steve Coffman <gears@apache.org> | 2001-08-01 23:08:55 +0000 |
---|---|---|
committer | Steve Coffman <gears@apache.org> | 2001-08-01 23:08:55 +0000 |
commit | 1f8404ea3f3676a23a7eced8e6558efefd2e03e0 (patch) | |
tree | a0526f9360fe9f29175ded93566407068377ca06 /src/org/apache/fop/render/ps/PSRenderer.java | |
parent | eeb2adff569057e2b6deb089ba9dffb21fb3a00b (diff) | |
download | xmlgraphics-fop-1f8404ea3f3676a23a7eced8e6558efefd2e03e0.tar.gz xmlgraphics-fop-1f8404ea3f3676a23a7eced8e6558efefd2e03e0.zip |
Code formatting. Still builds ok, but I didn't test it otherwise since last.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194386 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render/ps/PSRenderer.java')
-rw-r--r-- | src/org/apache/fop/render/ps/PSRenderer.java | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/org/apache/fop/render/ps/PSRenderer.java b/src/org/apache/fop/render/ps/PSRenderer.java index bbbe0e748..f0476bee8 100644 --- a/src/org/apache/fop/render/ps/PSRenderer.java +++ b/src/org/apache/fop/render/ps/PSRenderer.java @@ -437,10 +437,10 @@ public class PSRenderer implements Renderer { BridgeContext ctx = new BridgeContext(userAgent, rc); GraphicsNode root; PSGraphics2D graphics = new PSGraphics2D(false, area.getFontState(), - this, currentFontName, - currentFontSize, - currentXPosition, - currentYPosition); + this, currentFontName, + currentFontSize, + currentXPosition, + currentYPosition); graphics.setGraphicContext(new org.apache.batik.ext.awt.g2d.GraphicContext()); graphics.setRenderingHints(rc.getRenderingHints()); try { @@ -452,6 +452,7 @@ public class PSRenderer implements Renderer { // e.printStackTrace(); } + write("grestore"); comment("% --- SVG Area end"); @@ -747,6 +748,7 @@ public class PSRenderer implements Renderer { switch (area.getLeaderPattern()) { case LeaderPattern.SPACE: // NOP + break; case LeaderPattern.RULE: if (area.getRuleStyle() == RuleStyle.NONE) @@ -993,12 +995,14 @@ public class PSRenderer implements Renderer { // application.openLink(uri); } + public Point getClientAreaLocationOnScreen() { return new Point(0, 0); } public void setSVGCursor(java.awt.Cursor cursor) {} + public AffineTransform getTransform() { return currentTransform; } @@ -1021,17 +1025,17 @@ public class PSRenderer implements Renderer { public void registerExtension(BridgeExtension be) {} + } /** Default start renderer method. This would normally be overridden. (mark-fop@inomial.com). - */ + */ public void startRenderer(OutputStream outputStream) - throws IOException - { + throws IOException { MessageHandler.logln("rendering areas to PostScript"); - + this.out = new PSStream(outputStream); write("%!PS-Adobe-3.0"); write("%%Creator: "+this.producer); @@ -1047,14 +1051,13 @@ public class PSRenderer implements Renderer { write("%%EndSetup"); write("FOPFonts begin"); } - + /** Default stop renderer method. This would normally be overridden. (mark-fop@inomial.com). */ public void stopRenderer(OutputStream outputStream) - throws IOException - { + throws IOException { write("%%Trailer"); write("%%EOF"); this.out.flush(); @@ -1062,6 +1065,6 @@ public class PSRenderer implements Renderer { } public void render(Page page, OutputStream outputStream) { - this.renderPage(page); - } + this.renderPage(page); + } } |