< prev index next >

src/java.desktop/share/classes/javax/print/attribute/standard/MediaSize.java

Print this page

        

@@ -166,11 +166,11 @@
     }
 
     /**
      * Get the MediaSize for the specified named media.
      *
-     * @param media - the name of the media for which the size is sought
+     * @param media  the name of the media for which the size is sought
      * @return size of the media, or null if this media is not associated
      * with any size.
      */
     public static MediaSize getMediaSizeForName(MediaSizeName media) {
         return mediaMap.get(media);

@@ -185,12 +185,12 @@
      * This method may return null if the closest matching MediaSize
      * has no corresponding Media instance.
      * <p>
      * This method is useful for clients which have only dimensions and
      * want to find a Media which corresponds to the dimensions.
-     * @param x - X dimension
-     * @param y - Y dimension.
+     * @param x  X dimension
+     * @param y  Y dimension.
      * @param  units
      *     Unit conversion factor, e.g. <CODE>Size2DSyntax.INCH</CODE> or
      *     <CODE>Size2DSyntax.MM</CODE>
      * @return MediaSizeName matching these dimensions, or null.
      * @exception IllegalArgumentException if {@code x <= 0},
< prev index next >