]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
startRenderer and stopRenderer methods commented out
authorPeter Bernard West <pbwest@apache.org>
Tue, 16 Mar 2004 12:07:08 +0000 (12:07 +0000)
committerPeter Bernard West <pbwest@apache.org>
Tue, 16 Mar 2004 12:07:08 +0000 (12:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197454 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/awt/AWTPrintRenderer.java
src/java/org/apache/fop/render/awt/AWTRenderer.java

index 5b057959ac79544d301df8a147a176fb3073b9f0..336f3f5ccd7bce13deb2f74b179f327e8301081a 100644 (file)
@@ -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);
index ad0b695ddc0a2726819a5cc25e85c92ea7afd2d4..c7346cd09569b962b5532c0a2400073107da5c35 100644 (file)
@@ -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) {