< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/nimbus/ImageScalingHelper.java

Print this page

        

@@ -36,18 +36,18 @@
 class ImageScalingHelper {
 
     /** Enumeration for the types of painting this class can handle. */
     enum PaintType {
         /**
-         * Painting type indicating the image should be centered in the space provided.  When used the <code>mask</code>
+         * Painting type indicating the image should be centered in the space provided.  When used the {@code mask}
          * is ignored.
          */
         CENTER,
 
         /**
          * Painting type indicating the image should be tiled across the specified width and height.  When used the
-         * <code>mask</code> is ignored.
+         * {@code mask} is ignored.
          */
         TILE,
 
         /**
          * Painting type indicating the image should be split into nine regions with the top, left, bottom and right

@@ -80,24 +80,24 @@
      * For example PAINT_ALL | PAINT_CENTER will paint all but the center.
      */
     static final int PAINT_ALL = 512;
 
     /**
-     * Paints using the algorightm specified by <code>paintType</code>.
+     * Paints using the algorightm specified by {@code paintType}.
      *
      * @param g         Graphics to render to
      * @param x         X-coordinate
      * @param y         Y-coordinate
      * @param w         Width to render to
      * @param h         Height to render to
-     * @param image     Image to render from, if <code>null</code> this method will do nothing
-     * @param sInsets   Insets specifying the portion of the image that will be stretched or tiled, if <code>null</code>
-     *                  empty <code>Insets</code> will be used.
+     * @param image     Image to render from, if {@code null} this method will do nothing
+     * @param sInsets   Insets specifying the portion of the image that will be stretched or tiled, if {@code null}
+     *                  empty {@code Insets} will be used.
      * @param dInsets   Destination insets specifying the portion of the image will be stretched or tiled, if
-     *                  <code>null</code> empty <code>Insets</code> will be used.
+     *                  {@code null} empty {@code Insets} will be used.
      * @param paintType Specifies what type of algorithm to use in painting
-     * @param mask      Specifies portion of image to render, if <code>PAINT_ALL</code> is specified, any other regions
+     * @param mask      Specifies portion of image to render, if {@code PAINT_ALL} is specified, any other regions
      *                  specified will not be painted, for example PAINT_ALL | PAINT_CENTER paints everything but the
      *                  center.
      */
     public static void paint(Graphics g, int x, int y, int w, int h,
                       Image image, Insets sInsets,
< prev index next >