From: Peter Bernard West Date: Tue, 16 Mar 2004 12:07:08 +0000 (+0000) Subject: startRenderer and stopRenderer methods commented out X-Git-Tag: Defoe_export~245 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=516ee5e69cdb2ea930d9ea44c151c6c85b213680;p=xmlgraphics-fop.git startRenderer and stopRenderer methods commented out git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197454 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/awt/AWTPrintRenderer.java b/src/java/org/apache/fop/render/awt/AWTPrintRenderer.java index 5b057959a..336f3f5cc 100644 --- a/src/java/org/apache/fop/render/awt/AWTPrintRenderer.java +++ b/src/java/org/apache/fop/render/awt/AWTPrintRenderer.java @@ -18,9 +18,9 @@ package org.apache.fop.render.awt; -import java.awt.print.PrinterException; +//import java.awt.print.PrinterException; import java.awt.print.PrinterJob; -import java.io.IOException; +//import java.io.IOException; import java.util.Vector; public class AWTPrintRenderer extends AWTRenderer { @@ -60,27 +60,27 @@ public class AWTPrintRenderer extends AWTRenderer { printerJob.setPageable(this); } - public void stopRenderer() throws IOException { - super.stopRenderer(); - - if (endNumber == -1) { - endNumber = getNumberOfPages(); - } - - Vector numbers = getInvalidPageNumbers(); - for (int i = numbers.size() - 1; i > -1; i--) { - // removePage(Integer.parseInt((String)numbers.elementAt(i))); - } - - try { - printerJob.print(); - } catch (PrinterException e) { - e.printStackTrace(); - throw new IOException("Unable to print: " - + e.getClass().getName() - + ": " + e.getMessage()); - } - } +// public void stopRenderer() throws IOException { +// super.stopRenderer(); +// +// if (endNumber == -1) { +// endNumber = getNumberOfPages(); +// } +// +// Vector numbers = getInvalidPageNumbers(); +// for (int i = numbers.size() - 1; i > -1; i--) { +// // removePage(Integer.parseInt((String)numbers.elementAt(i))); +// } +// +// try { +// printerJob.print(); +// } catch (PrinterException e) { +// e.printStackTrace(); +// throw new IOException("Unable to print: " +// + e.getClass().getName() +// + ": " + e.getMessage()); +// } +// } public static int getIntProperty(String name, int def) { String propValue = System.getProperty(name); diff --git a/src/java/org/apache/fop/render/awt/AWTRenderer.java b/src/java/org/apache/fop/render/awt/AWTRenderer.java index ad0b695dd..c7346cd09 100644 --- a/src/java/org/apache/fop/render/awt/AWTRenderer.java +++ b/src/java/org/apache/fop/render/awt/AWTRenderer.java @@ -37,7 +37,6 @@ import java.awt.print.PageFormat; import java.awt.print.Pageable; import java.awt.print.Printable; import java.io.IOException; -import java.io.OutputStream; import java.util.Map; import java.util.Vector; @@ -52,7 +51,9 @@ import org.apache.fop.render.awt.viewer.Translator; /** * This is FOP's AWT renderer. */ -public class AWTRenderer extends AbstractRenderer implements Printable, Pageable { +public class AWTRenderer +extends AbstractRenderer +implements Printable, Pageable { protected double scaleFactor = 100.0; protected int pageNumber = 0; @@ -134,20 +135,20 @@ public class AWTRenderer extends AbstractRenderer implements Printable, Pageable return scaleFactor; } - public void startRenderer(OutputStream out) - throws IOException { - // empty pageViewportList, in case of a reload from PreviewDialog - pageViewportList.removeAllElements(); - pageList.removeAllElements(); - bufferedImageList.removeAllElements(); - System.out.println("\nRegion Types: 0-Before/Top, 1-Start/Left, 2-Body, 3-End/Right, 4-After/Bottom"); - } - - public void stopRenderer() - throws IOException { - frame.setStatus(translator.getString("Status.Show")); - frame.showPage(); - } +// public void startRenderer(OutputStream out) +// throws IOException { +// // empty pageViewportList, in case of a reload from PreviewDialog +// pageViewportList.removeAllElements(); +// pageList.removeAllElements(); +// bufferedImageList.removeAllElements(); +// System.out.println("\nRegion Types: 0-Before/Top, 1-Start/Left, 2-Body, 3-End/Right, 4-After/Bottom"); +// } +// +// public void stopRenderer() +// throws IOException { +// frame.setStatus(translator.getString("Status.Show")); +// frame.showPage(); +// } // Printable Interface public PageFormat getPageFormat(int pos) {