< prev index next >

src/java.desktop/share/classes/sun/swing/plaf/synth/Paint9Painter.java

Print this page

        

@@ -38,17 +38,17 @@
      * Enumeration for the types of painting this class can handle.
      */
     public enum PaintType {
         /**
          * Painting type indicating the image should be centered in
-         * the space provided.  When used the <code>mask</code> is ignored.
+         * 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
+         * specified width and height.  When used the {@code mask} is
          * ignored.
          */
         TILE,
 
         /**

@@ -84,11 +84,11 @@
 
     /**
      * Convenience method for testing the validity of an image.
      *
      * @param image Image to check.
-     * @return true if <code>image</code> is non-null and has a positive
+     * @return true if {@code image} is non-null and has a positive
      *         size.
      */
     public static boolean validImage(Image image) {
         return (image != null && image.getWidth(null) > 0 &&
                 image.getHeight(null) > 0);

@@ -98,31 +98,31 @@
     public Paint9Painter(int cacheCount) {
         super(cacheCount);
     }
 
     /**
-     * Paints using the algorightm specified by <code>paintType</code>.
+     * Paints using the algorightm specified by {@code paintType}.
      * NOTE that this just invokes super.paint(...) with the same
      * argument ordering as this method.
      *
      * @param c Component rendering to
      * @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 source Image to render from, if <code>null</code> this method
+     * @param source 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</code> empty
-     *                <code>Insets</code> will be used.
+     *                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.
+     *                will be stretched or tiled, if {@code null} empty
+     *                {@code Insets} will be used.
      * @param type 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
+     *             {@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 void paint(Component c, Graphics g, int x,
                       int y, int w, int h, Image source, Insets sInsets,
< prev index next >