diff options
author | Tore Engvig <tore@apache.org> | 2001-07-30 20:29:35 +0000 |
---|---|---|
committer | Tore Engvig <tore@apache.org> | 2001-07-30 20:29:35 +0000 |
commit | e0edd215721150e6c04ac49706622d6189cb0b42 (patch) | |
tree | 6b59b872d9c0e93f99316ea2f421209b71a97755 /src/org/apache/fop/apps/PrintStarter.java | |
parent | eb57915dec9bcd907e495595efac60dbf3579ad8 (diff) | |
download | xmlgraphics-fop-e0edd215721150e6c04ac49706622d6189cb0b42.tar.gz xmlgraphics-fop-e0edd215721150e6c04ac49706622d6189cb0b42.zip |
Formatted code according to code standards.
Changed license to use short license.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/apps/PrintStarter.java')
-rw-r--r-- | src/org/apache/fop/apps/PrintStarter.java | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/org/apache/fop/apps/PrintStarter.java b/src/org/apache/fop/apps/PrintStarter.java index 3d2c52a0d..c50172c4d 100644 --- a/src/org/apache/fop/apps/PrintStarter.java +++ b/src/org/apache/fop/apps/PrintStarter.java @@ -1,4 +1,5 @@ -/* $Id$ +/* + * $Id$ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -7,9 +8,9 @@ package org.apache.fop.apps; /* - originally contributed by - Stanislav Gorkhover: stanislav.gorkhover@jcatalog.com - jCatalog Software AG + * originally contributed by + * Stanislav Gorkhover: stanislav.gorkhover@jcatalog.com + * jCatalog Software AG */ @@ -43,11 +44,11 @@ import org.apache.fop.messaging.MessageHandler; */ public class PrintStarter extends CommandLineStarter { - public PrintStarter (CommandLineOptions options) throws FOPException { + public PrintStarter(CommandLineOptions options) throws FOPException { super(options); } - public void run () throws FOPException { + public void run() throws FOPException { Driver driver = new Driver(); if (errorDump) { driver.setErrorDump(true); @@ -69,7 +70,7 @@ public class PrintStarter extends CommandLineStarter { driver.render(); } catch (Exception e) { if (e instanceof FOPException) { - throw (FOPException) e; + throw (FOPException)e; } throw new FOPException(e); } @@ -111,8 +112,7 @@ public class PrintStarter extends CommandLineStarter { if (str != null) { try { mode = Boolean.valueOf(str).booleanValue() ? EVEN : ODD; - } catch (Exception e) { - } + } catch (Exception e) {} } } @@ -140,14 +140,13 @@ public class PrintStarter extends CommandLineStarter { Vector numbers = getInvalidPageNumbers(); for (int i = numbers.size() - 1; i > -1; i--) - tree.getPages().removeElementAt( - Integer.parseInt((String) numbers.elementAt(i))); + tree.getPages().removeElementAt(Integer.parseInt((String)numbers.elementAt(i))); } public void renderPage(Page page) { - pageWidth = (int)((float) page.getWidth() / 1000f); - pageHeight = (int)((float) page.getHeight() / 1000f); + pageWidth = (int)((float)page.getWidth() / 1000f); + pageHeight = (int)((float)page.getHeight() / 1000f); super.renderPage(page); } @@ -184,8 +183,8 @@ public class PrintStarter extends CommandLineStarter { } - } // class PrintRenderer -} // class PrintCommandLine + } // class PrintRenderer +} // class PrintCommandLine |