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/txt | |
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/txt')
-rwxr-xr-x | src/org/apache/fop/render/txt/TXTRenderer.java | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/org/apache/fop/render/txt/TXTRenderer.java b/src/org/apache/fop/render/txt/TXTRenderer.java index 11b9f31f9..b173ab03c 100755 --- a/src/org/apache/fop/render/txt/TXTRenderer.java +++ b/src/org/apache/fop/render/txt/TXTRenderer.java @@ -96,6 +96,7 @@ public class TXTRenderer extends PrintRenderer { */ public void setProducer(String producer) {} + void addStr(int row, int col, String str, boolean ischar) { if (debug) System.out.println("TXTRenderer.addStr(" + row + ", " + col @@ -734,6 +735,7 @@ public class TXTRenderer extends PrintRenderer { PDFColor fc, PDFColor sc, float sw, boolean close) {} + boolean printBMP(FopImage img, int x, int y, int w, int h) throws FopImageException { if (debug) @@ -750,13 +752,13 @@ public class TXTRenderer extends PrintRenderer { if (iname.length() >= namew) addStr((int)((pageHeight - (y / 100)) * 100 * yFactor) + nameh, (int)(x * xFactor), - iname.substring(iname.length() - namew), - true); + iname.substring(iname.length() - namew), + true); else addStr((int)((pageHeight - (y / 100)) * 100 * yFactor) + nameh, (int)(x * xFactor + (namew - iname.length()) - / 2), iname, true); + / 2), iname, true); } } @@ -868,6 +870,7 @@ public class TXTRenderer extends PrintRenderer { // this.currentYPosition -= area.getEffectiveHeight(); } + void renderSVG(FontState fontState, SVGSVGElement svg, int x, int y) { /* * SVG - Not yet implemented @@ -1607,7 +1610,7 @@ public class TXTRenderer extends PrintRenderer { if (end != null) renderAreaContainer(end); - // Write out the buffers. + // Write out the buffers. for (int row = 0; row <= maxY; row++) { StringBuffer cr = charData[row]; StringBuffer dr = decoData[row]; @@ -1673,35 +1676,32 @@ public class TXTRenderer extends PrintRenderer { */ } public void startRenderer(OutputStream outputStream) - throws IOException - { - MessageHandler.logln("rendering areas to TEXT"); - currentStream = new PCLStream(outputStream); - firstPage=true; + throws IOException { + MessageHandler.logln("rendering areas to TEXT"); + currentStream = new PCLStream(outputStream); + firstPage=true; } - - /** - * In Mark's patch, this is endRenderer - * However, I couldn't see how it builds that way, so - * i changed it. - Steve gears@apache.org - */ + + /** + * In Mark's patch, this is endRenderer + * However, I couldn't see how it builds that way, so + * i changed it. - Steve gears@apache.org + */ public void stopRenderer(OutputStream outputStream) - throws IOException - { + throws IOException { MessageHandler.logln("writing out TEXT"); outputStream.flush(); } - public void render(Page page, OutputStream outputStream) - { - idReferences = page.getIDReferences(); - - if ( firstPage ) - firstPage = false; - else - currentStream.add(pageEnding); - this.renderPage(page); - currentStream.add(lineEnding); - } + public void render(Page page, OutputStream outputStream) { + idReferences = page.getIDReferences(); + + if ( firstPage ) + firstPage = false; + else + currentStream.add(pageEnding); + this.renderPage(page); + currentStream.add(lineEnding); + } } |