< prev index next >
src/java.desktop/share/classes/javax/swing/text/Utilities.java
Print this page
@@ -49,11 +49,11 @@
*
* @author Timothy Prinzing
*/
public class Utilities {
/**
- * If <code>view</code>'s container is a <code>JComponent</code> it
+ * If {@code view}'s container is a {@code JComponent} it
* is returned, after casting.
*/
static JComponent getJComponent(View view) {
if (view != null) {
Component component = view.getContainer();
@@ -982,31 +982,31 @@
* <p>
* This implementation assumes the views are layed out in a logical
* manner. That is, that the view at index x + 1 is visually after
* the View at index x, and that the View at index x - 1 is visually
* before the View at x. There is support for reversing this behavior
- * only if the passed in <code>View</code> is an instance of
- * <code>CompositeView</code>. The <code>CompositeView</code>
- * must then override the <code>flipEastAndWestAtEnds</code> method.
+ * only if the passed in {@code View} is an instance of
+ * {@code CompositeView}. The {@code CompositeView}
+ * must then override the {@code flipEastAndWestAtEnds} method.
*
* @param v View to query
* @param pos the position to convert >= 0
* @param a the allocated region to render into
* @param direction the direction from the current position that can
* be thought of as the arrow keys typically found on a keyboard;
* this may be one of the following:
* <ul>
- * <li><code>SwingConstants.WEST</code>
- * <li><code>SwingConstants.EAST</code>
- * <li><code>SwingConstants.NORTH</code>
- * <li><code>SwingConstants.SOUTH</code>
+ * <li>{@code SwingConstants.WEST}
+ * <li>{@code SwingConstants.EAST}
+ * <li>{@code SwingConstants.NORTH}
+ * <li>{@code SwingConstants.SOUTH}
* </ul>
* @param biasRet an array contain the bias that was checked
* @return the location within the model that best represents the next
* location visual position
* @exception BadLocationException
- * @exception IllegalArgumentException if <code>direction</code> is invalid
+ * @exception IllegalArgumentException if {@code direction} is invalid
*/
static int getNextVisualPositionFrom(View v, int pos, Position.Bias b,
Shape alloc, int direction,
Position.Bias[] biasRet)
throws BadLocationException {
< prev index next >