< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicProgressBarUI.java
Print this page
@@ -463,24 +463,24 @@
}
/**
* Stores the position and size of
* the bouncing box that would be painted for the current animation index
- * in <code>r</code> and returns <code>r</code>.
+ * in {@code r} and returns {@code r}.
* Subclasses that add to the painting performed
- * in this class's implementation of <code>paintIndeterminate</code> --
+ * in this class's implementation of {@code paintIndeterminate} --
* to draw an outline around the bouncing box, for example --
* can use this method to get the location of the bouncing
* box that was just painted.
* By overriding this method,
* you have complete control over the size and position
* of the bouncing box,
- * without having to reimplement <code>paintIndeterminate</code>.
+ * without having to reimplement {@code paintIndeterminate}.
*
* @param r the Rectangle instance to be modified;
- * may be <code>null</code>
- * @return <code>null</code> if no box should be drawn;
+ * may be {@code null}
+ * @return {@code null} if no box should be drawn;
* otherwise, returns the passed-in rectangle
* (if non-null)
* or a new rectangle
*
* @see #setAnimationIndex
@@ -585,11 +585,11 @@
/**
* Returns the length
* of the "bouncing box" to be painted.
* This method is invoked by the
- * default implementation of <code>paintIndeterminate</code>
+ * default implementation of {@code paintIndeterminate}
* to get the width (if the progress bar is horizontal)
* or height (if vertical) of the box.
* For example:
* <blockquote>
* <pre>
@@ -609,11 +609,11 @@
* the inside height of the progress bar; this
* value might be used to constrain or determine
* the return value
*
* @return the size of the box dimension being determined;
- * must be no larger than <code>availableLength</code>
+ * must be no larger than {@code availableLength}
*
* @see javax.swing.SwingUtilities#calculateInnerArea
* @since 1.5
*/
protected int getBoxLength(int availableLength, int otherDimension) {
@@ -990,11 +990,11 @@
* Sets the index of the current animation frame
* to the specified value and requests that the
* progress bar be repainted.
* Subclasses that don't use the default painting code
* might need to override this method
- * to change the way that the <code>repaint</code> method
+ * to change the way that the {@code repaint} method
* is invoked.
*
* @param newValue the new animation index; no checking
* is performed on its value
* @see #incrementAnimationIndex
< prev index next >