< prev index next >

src/java.desktop/share/classes/java/awt/print/Paper.java

Print this page

        

@@ -26,14 +26,14 @@
 package java.awt.print;
 
 import java.awt.geom.Rectangle2D;
 
 /**
- * The <code>Paper</code> class describes the physical characteristics of
+ * The {@code Paper} class describes the physical characteristics of
  * a piece of paper.
  * <p>
- * When creating a <code>Paper</code> object, it is the application's
+ * When creating a {@code Paper} object, it is the application's
  * responsibility to ensure that the paper size and the imageable area
  * are compatible.  For example, if the paper size is changed from
  * 11 x 17 to 8.5 x 11, the application might need to reduce the
  * imageable area so that whatever is printed fits on the page.
  * @see #setSize(double, double)

@@ -92,13 +92,13 @@
     }
 
  /* Instance Methods */
 
     /**
-     * Creates a copy of this <code>Paper</code> with the same contents
-     * as this <code>Paper</code>.
-     * @return a copy of this <code>Paper</code>.
+     * Creates a copy of this {@code Paper} with the same contents
+     * as this {@code Paper}.
+     * @return a copy of this {@code Paper}.
      */
     public Object clone() {
 
         Paper newPaper;
 

@@ -118,25 +118,25 @@
     }
 
     /**
      * Returns the height of the page in 1/72nds of an inch.
      * @return the height of the page described by this
-     *          <code>Paper</code>.
+     *          {@code Paper}.
      */
     public double getHeight() {
         return mHeight;
     }
 
     /**
-     * Sets the width and height of this <code>Paper</code>
+     * Sets the width and height of this {@code Paper}
      * object, which represents the properties of the page onto
      * which printing occurs.
      * The dimensions are supplied in 1/72nds of
      * an inch.
-     * @param width the value to which to set this <code>Paper</code>
+     * @param width the value to which to set this {@code Paper}
      * object's width
-     * @param height the value to which to set this <code>Paper</code>
+     * @param height the value to which to set this {@code Paper}
      * object's height
      */
     public void setSize(double width, double height) {
         mWidth = width;
         mHeight = height;

@@ -144,63 +144,63 @@
 
     /**
      * Returns the width of the page in 1/72nds
      * of an inch.
      * @return the width of the page described by this
-     * <code>Paper</code>.
+     * {@code Paper}.
      */
     public double getWidth() {
         return mWidth;
     }
 
     /**
-     * Sets the imageable area of this <code>Paper</code>.  The
+     * Sets the imageable area of this {@code Paper}.  The
      * imageable area is the area on the page in which printing
      * occurs.
      * @param x the X coordinate to which to set the
-     * upper-left corner of the imageable area of this <code>Paper</code>
+     * upper-left corner of the imageable area of this {@code Paper}
      * @param y the Y coordinate to which to set the
-     * upper-left corner of the imageable area of this <code>Paper</code>
+     * upper-left corner of the imageable area of this {@code Paper}
      * @param width the value to which to set the width of the
-     * imageable area of this <code>Paper</code>
+     * imageable area of this {@code Paper}
      * @param height the value to which to set the height of the
-     * imageable area of this <code>Paper</code>
+     * imageable area of this {@code Paper}
      */
     public void setImageableArea(double x, double y,
                                  double width, double height) {
         mImageableArea = new Rectangle2D.Double(x, y, width,height);
     }
 
     /**
      * Returns the x coordinate of the upper-left corner of this
-     * <code>Paper</code> object's imageable area.
+     * {@code Paper} object's imageable area.
      * @return the x coordinate of the imageable area.
      */
     public double getImageableX() {
         return mImageableArea.getX();
     }
 
     /**
      * Returns the y coordinate of the upper-left corner of this
-     * <code>Paper</code> object's imageable area.
+     * {@code Paper} object's imageable area.
      * @return the y coordinate of the imageable area.
      */
     public double getImageableY() {
         return mImageableArea.getY();
     }
 
     /**
-     * Returns the width of this <code>Paper</code> object's imageable
+     * Returns the width of this {@code Paper} object's imageable
      * area.
      * @return the width of the imageable area.
      */
     public double getImageableWidth() {
         return mImageableArea.getWidth();
     }
 
     /**
-     * Returns the height of this <code>Paper</code> object's imageable
+     * Returns the height of this {@code Paper} object's imageable
      * area.
      * @return the height of the imageable area.
      */
     public double getImageableHeight() {
         return mImageableArea.getHeight();
< prev index next >