diff options
Diffstat (limited to 'libjava/classpath/java/awt/print')
-rw-r--r-- | libjava/classpath/java/awt/print/Book.java | 4 | ||||
-rw-r--r-- | libjava/classpath/java/awt/print/PageFormat.java | 36 | ||||
-rw-r--r-- | libjava/classpath/java/awt/print/Pageable.java | 16 | ||||
-rw-r--r-- | libjava/classpath/java/awt/print/Paper.java | 22 | ||||
-rw-r--r-- | libjava/classpath/java/awt/print/PrinterGraphics.java | 4 | ||||
-rw-r--r-- | libjava/classpath/java/awt/print/PrinterIOException.java | 3 | ||||
-rw-r--r-- | libjava/classpath/java/awt/print/PrinterJob.java | 12 |
7 files changed, 48 insertions, 49 deletions
diff --git a/libjava/classpath/java/awt/print/Book.java b/libjava/classpath/java/awt/print/Book.java index b084a1723f1..8b040b2d143 100644 --- a/libjava/classpath/java/awt/print/Book.java +++ b/libjava/classpath/java/awt/print/Book.java @@ -135,8 +135,8 @@ public class Book implements Pageable { for (int i = 0; i < num_pages; i++) { - printables.addElement(printable); - page_formats.addElement(page_format); + printables.addElement(printable); + page_formats.addElement(page_format); } } diff --git a/libjava/classpath/java/awt/print/PageFormat.java b/libjava/classpath/java/awt/print/PageFormat.java index 0a8aa3ed0eb..86d8ba2105b 100644 --- a/libjava/classpath/java/awt/print/PageFormat.java +++ b/libjava/classpath/java/awt/print/PageFormat.java @@ -41,7 +41,7 @@ package java.awt.print; /** * This class contains information about the desired page format to use for * printing a particular set of pages. - * + * * @author Aaron M. Renn (arenn@urbanophile.com) */ public class PageFormat @@ -61,9 +61,9 @@ public class PageFormat /** * A constant for a reversed landscaped page orientation. This is the - * orientation used by Macintosh's for landscape. The origin is in the - * upper right hand corner instead of the upper left. The X and Y axes - * are reversed. Used by <code>getOrientation</code> and + * orientation used by Macintosh's for landscape. The origin is in the + * upper right hand corner instead of the upper left. The X and Y axes + * are reversed. Used by <code>getOrientation</code> and * <code>setOrientation</code>. */ public static final int REVERSE_LANDSCAPE = 2; @@ -87,7 +87,7 @@ public class PageFormat /** * This method returns the width of the page, in 1/72nd's of an inch. The * "width" measured depends on orientation. - * + * * @return The width of the page. */ public double getWidth() @@ -98,7 +98,7 @@ public class PageFormat /** * This method returns the height of the page, in 1/72nd's of an inch. The * "height" measured depends on the orientation. - * + * * @return The height of the page. */ public double getHeight() @@ -109,7 +109,7 @@ public class PageFormat /** * This method returns the X coordinate value of the upper leftmost drawable * area of the paper. - * + * * @return The upper leftmost imageable X coordinate. */ public double getImageableX() @@ -120,7 +120,7 @@ public class PageFormat /** * This method returns the Y coordinate value of the upper leftmost drawable * area of the paper. - * + * * @return The upper leftmost imageable Y coordinate. */ public double getImageableY() @@ -131,7 +131,7 @@ public class PageFormat /** * This method returns the imageable width of the paper, in 1/72nd's of an * inch. - * + * * @return The imageable width of the paper. */ public double getImageableWidth() @@ -142,7 +142,7 @@ public class PageFormat /** * This method returns the imageable height of the paper, in 1/72nd's of an * inch. - * + * * @return The imageable height of the paper. */ public double getImageableHeight() @@ -153,7 +153,7 @@ public class PageFormat /** * Returns a copy of the <code>paper</code> object being used for this page * format. - * + * * @return A copy of the <code>Paper</code> object for this format. */ public Paper getPaper() @@ -163,7 +163,7 @@ public class PageFormat /** * Sets the <code>Paper</code> object to be used by this page format. - * + * * @param paper The new <code>Paper</code> object for this page format. */ public void setPaper(Paper paper) @@ -174,7 +174,7 @@ public class PageFormat /** * This method returns the current page orientation. The value returned will * be one of the page orientation constants from this class. - * + * * @return The current page orientation. */ public int getOrientation() @@ -184,11 +184,11 @@ public class PageFormat /** * This method sets the page orientation for this format to the specified - * value. It must be one of the page orientation constants from this class + * value. It must be one of the page orientation constants from this class * or an exception will be thrown. - * + * * @param orientation The new page orientation. - * @exception IllegalArgumentException If the specified page orientation + * @exception IllegalArgumentException If the specified page orientation * value is not one of the constants from this class. */ public void setOrientation(int orientation) throws IllegalArgumentException @@ -203,9 +203,9 @@ public class PageFormat /** * This method returns a matrix used for transforming user space coordinates - * to page coordinates. The value returned will be six doubles as described + * to page coordinates. The value returned will be six doubles as described * in <code>java.awt.geom.AffineTransform</code>. - * + * * @return The transformation matrix for this page format. */ public double[] getMatrix() diff --git a/libjava/classpath/java/awt/print/Pageable.java b/libjava/classpath/java/awt/print/Pageable.java index d61195a92f0..58e0885fbc9 100644 --- a/libjava/classpath/java/awt/print/Pageable.java +++ b/libjava/classpath/java/awt/print/Pageable.java @@ -40,7 +40,7 @@ package java.awt.print; /** * This interface represents pages that are to be printed. - * + * * @author Aaron M. Renn (arenn@urbanophile.com) */ public interface Pageable @@ -53,9 +53,9 @@ public interface Pageable /** * This method returns the number of pages this object contains, or - * <code>UNKNOWN_NUMBER_OF_PAGES</code> if it cannot determine the number + * <code>UNKNOWN_NUMBER_OF_PAGES</code> if it cannot determine the number * of pages to be printed. - * + * * @return The number of pages to be printed, or * <code>UNKNOWN_NUMBER_OF_PAGES</code> if this is unknown. */ @@ -65,11 +65,11 @@ public interface Pageable * This method returns the <code>PageFormat</code> instance for the * specified page. Page numbers start at zero. An exception is thrown if the * requested page does not exist. - * + * * @param pageIndex The index of the page to return the * <code>PageFormat</code> for. * @return The <code>PageFormat</code> for the requested page. - * @exception IndexOutOfBoundsException If the requested page number does + * @exception IndexOutOfBoundsException If the requested page number does * not exist. */ PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException; @@ -78,11 +78,11 @@ public interface Pageable * This method returns the <code>Printable</code> instance for the specified * page. Page numbers start at zero. An exception is thrown if the requested * page does not exist. - * - * @param pageIndex The index of the page to return the + * + * @param pageIndex The index of the page to return the * <code>Printable</code> for. * @return The <code>Printable</code> for the requested page. - * @exception IndexOutOfBoundsException If the requested page number does + * @exception IndexOutOfBoundsException If the requested page number does * not exist. */ Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException; diff --git a/libjava/classpath/java/awt/print/Paper.java b/libjava/classpath/java/awt/print/Paper.java index fb7ba91158f..a80da2fea41 100644 --- a/libjava/classpath/java/awt/print/Paper.java +++ b/libjava/classpath/java/awt/print/Paper.java @@ -40,7 +40,7 @@ package java.awt.print; /** * This class describes a particular type of paper. - * + * * @author Aaron M. Renn (arenn@urbanophile.com) */ public class Paper @@ -79,7 +79,7 @@ public class Paper /** * This method returns the height of the paper in 1/72nds of an inch. - * + * * @return The height of the paper in 1/72nds of an inch. */ public double getHeight() @@ -89,7 +89,7 @@ public class Paper /** * Returns the width of the paper in 1/72nds of an inch. - * + * * @return The width of the paper in 1/72nds of an inch. */ public double getWidth() @@ -100,7 +100,7 @@ public class Paper /** * This method returns the X coordinate of the upper left hand corner of the * imageable area of the paper. - * + * * @return The X coordinate of the upper left hand corner of the imageable * area of the paper. */ @@ -112,7 +112,7 @@ public class Paper /** * This method returns the Y coordinate of the upper left hand corner of the * imageable area of the paper. - * + * * @return The Y coordinate of the upper left hand corner of the imageable * area of the paper. */ @@ -123,7 +123,7 @@ public class Paper /** * Returns the width of the imageable area of the paper. - * + * * @return The width of the imageable area of the paper. */ public double getImageableWidth() @@ -133,7 +133,7 @@ public class Paper /** * Returns the height of the imageable area of the paper. - * + * * @return The height of the imageable area of the paper. */ public double getImageableHeight() @@ -144,7 +144,7 @@ public class Paper /** * This method sets the size of the paper to the specified width and height, * which are specified in 1/72nds of an inch. - * + * * @param width The width of the paper in 1/72nds of an inch. * @param height The height of the paper in 1/72nds of an inch. */ @@ -156,9 +156,9 @@ public class Paper /** * This method sets the imageable area of the paper by specifying the - * coordinates of the upper left hand corner of that area, and its length + * coordinates of the upper left hand corner of that area, and its length * and height. All values are in 1/72nds of an inch. - * + * * @param imageableX The X coordinate of the upper left hand corner of the * imageable area, in 1/72nds of an inch. * @param imageableY The Y coordinate of the upper left hand corner of the @@ -179,7 +179,7 @@ public class Paper /** * This method creates a copy of this object. - * + * * @return A copy of this object. */ public Object clone() diff --git a/libjava/classpath/java/awt/print/PrinterGraphics.java b/libjava/classpath/java/awt/print/PrinterGraphics.java index 62fde8406dd..c1f199c651f 100644 --- a/libjava/classpath/java/awt/print/PrinterGraphics.java +++ b/libjava/classpath/java/awt/print/PrinterGraphics.java @@ -42,7 +42,7 @@ package java.awt.print; * This interface is implemented by the <code>Graphics</code> instance that is * used for rendering pages. It provides a hook to return the object that is * controlling the print job. - * + * * @author Aaron M. Renn (arenn@urbanophile.com) */ public interface PrinterGraphics @@ -50,7 +50,7 @@ public interface PrinterGraphics /** * This method returns the instance of <code>PrinterJob</code> that is * controlling this print job. - * + * * @return The <code>PrinterJob</code> that is controlling this print job. */ PrinterJob getPrinterJob(); diff --git a/libjava/classpath/java/awt/print/PrinterIOException.java b/libjava/classpath/java/awt/print/PrinterIOException.java index c646acdec3a..2089af59e22 100644 --- a/libjava/classpath/java/awt/print/PrinterIOException.java +++ b/libjava/classpath/java/awt/print/PrinterIOException.java @@ -71,7 +71,7 @@ public class PrinterIOException extends PrinterException { super(mException == null ? null : mException.toString()); initCause(mException); - this.mException = mException; + this.mException = mException; } /** @@ -95,4 +95,3 @@ public class PrinterIOException extends PrinterException return mException; } } // class PrinterIOException - diff --git a/libjava/classpath/java/awt/print/PrinterJob.java b/libjava/classpath/java/awt/print/PrinterJob.java index 3715dd235ec..1a4b8c8e207 100644 --- a/libjava/classpath/java/awt/print/PrinterJob.java +++ b/libjava/classpath/java/awt/print/PrinterJob.java @@ -68,7 +68,7 @@ public abstract class PrinterJob } /** - * Initializes a new instance of <code>PrinterJob</code>. + * Initializes a new instance of <code>PrinterJob</code>. */ public PrinterJob() { @@ -163,7 +163,7 @@ public abstract class PrinterJob // FIXME: Implement this for real. return pageDialog((PageFormat) null); } - + /** * Prints the pages. */ @@ -239,7 +239,7 @@ public abstract class PrinterJob /** * Find and return 2D image print services. - * + * * This is the same as calling PrintServiceLookup.lookupPrintServices() * with Pageable service-specified DocFlavor. * @return Array of PrintService objects, could be empty. @@ -250,13 +250,13 @@ public abstract class PrinterJob return PrintServiceLookup.lookupPrintServices ( new DocFlavor("application/x-java-jvm-local-objectref", - "java.awt.print.Pageable"), + "java.awt.print.Pageable"), null); } /** * Find and return 2D image stream print services. - * + * * This is the same as calling * StreamPrintServiceFactory.lookupStreamPrintServices() * with Pageable service-specified DocFlavor. @@ -274,7 +274,7 @@ public abstract class PrinterJob /** * Return the printer for this job. If print services aren't supported by * the subclass, returns null. - * + * * @return The associated PrintService. * @since 1.4 */ |