< prev index next >

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

Print this page

        

@@ -202,17 +202,17 @@
 
     /**
      * Actually performs the painting operation. Subclasses must implement this method.
      * The graphics object passed may represent the actual surface being rendered to,
      * or it may be an intermediate buffer. It has also been pre-translated. Simply render
-     * the component as if it were located at 0, 0 and had a width of <code>width</code>
-     * and a height of <code>height</code>. For performance reasons, you may want to read
+     * the component as if it were located at 0, 0 and had a width of {@code width}
+     * and a height of {@code height}. For performance reasons, you may want to read
      * the clip from the Graphics2D object and only render within that space.
      *
      * @param g The Graphics2D surface to paint to
      * @param c The JComponent related to the drawing event. For example, if the
-     *          region being rendered is Button, then <code>c</code> will be a
+     *          region being rendered is Button, then {@code c} will be a
      *          JButton. If the region being drawn is ScrollBarSlider, then the
      *          component will be JScrollBar. This value may be null.
      * @param width The width of the region to paint. Note that in the case of
      *              painting the foreground, this value may differ from c.getWidth().
      * @param height The height of the region to paint. Note that in the case of

@@ -411,13 +411,13 @@
         return new RadialGradientPaint(x, y, r, midpoints, colors);
     }
 
     /**
      * Get a color property from the given JComponent. First checks for a
-     * <code>getXXX()</code> method and if that fails checks for a client
-     * property with key <code>property</code>. If that still fails to return
-     * a Color then <code>defaultColor</code> is returned.
+     * {@code getXXX()} method and if that fails checks for a client
+     * property with key {@code property}. If that still fails to return
+     * a Color then {@code defaultColor} is returned.
      *
      * @param c The component to get the color property from
      * @param property The name of a bean style property or client property
      * @param defaultColor The color to return if no color was obtained from
      *        the component.
< prev index next >