< prev index next >
src/java.desktop/share/classes/javax/swing/text/NavigationFilter.java
Print this page
@@ -25,38 +25,38 @@
package javax.swing.text;
import java.awt.Shape;
/**
- * <code>NavigationFilter</code> can be used to restrict where the cursor can
+ * {@code NavigationFilter} can be used to restrict where the cursor can
* be positioned. When the default cursor positioning actions attempt to
* reposition the cursor they will call into the
- * <code>NavigationFilter</code>, assuming
- * the <code>JTextComponent</code> has a non-null
- * <code>NavigationFilter</code> set. In this manner
- * the <code>NavigationFilter</code> can effectively restrict where the
- * cursor can be positioned. Similarly <code>DefaultCaret</code> will call
- * into the <code>NavigationFilter</code> when the user is changing the
+ * {@code NavigationFilter}, assuming
+ * the {@code JTextComponent} has a non-null
+ * {@code NavigationFilter} set. In this manner
+ * the {@code NavigationFilter} can effectively restrict where the
+ * cursor can be positioned. Similarly {@code DefaultCaret} will call
+ * into the {@code NavigationFilter} when the user is changing the
* selection to further restrict where the cursor can be positioned.
* <p>
* Subclasses can conditionally call into supers implementation to restrict
* where the cursor can be placed, or call directly into the
- * <code>FilterBypass</code>.
+ * {@code FilterBypass}.
*
* @see javax.swing.text.Caret
* @see javax.swing.text.DefaultCaret
* @see javax.swing.text.View
*
* @since 1.4
*/
public class NavigationFilter {
/**
* Invoked prior to the Caret setting the dot. The default implementation
- * calls directly into the <code>FilterBypass</code> with the passed
+ * calls directly into the {@code FilterBypass} with the passed
* in arguments. Subclasses may wish to conditionally
* call super with a different location, or invoke the necessary method
- * on the <code>FilterBypass</code>
+ * on the {@code FilterBypass}
*
* @param fb FilterBypass that can be used to mutate caret position
* @param dot the position >= 0
* @param bias Bias to place the dot at
*/
@@ -64,14 +64,14 @@
fb.setDot(dot, bias);
}
/**
* Invoked prior to the Caret moving the dot. The default implementation
- * calls directly into the <code>FilterBypass</code> with the passed
+ * calls directly into the {@code FilterBypass} with the passed
* in arguments. Subclasses may wish to conditionally
* call super with a different location, or invoke the necessary
- * methods on the <code>FilterBypass</code>.
+ * methods on the {@code FilterBypass}.
*
* @param fb FilterBypass that can be used to mutate caret position
* @param dot the position >= 0
* @param bias Bias for new location
*/
@@ -99,11 +99,11 @@
* </ul>
* @param biasRet Used to return resulting Bias of next position
* @return the location within the model that best represents the next
* location visual position
* @exception BadLocationException for a bad location within a document model
- * @exception IllegalArgumentException if <code>direction</code>
+ * @exception IllegalArgumentException if {@code direction}
* doesn't have one of the legal values above
*/
public int getNextVisualPositionFrom(JTextComponent text, int pos,
Position.Bias bias, int direction,
Position.Bias[] biasRet)
< prev index next >