javax.swing.text
public class NavigationFilter extends Object
Nested Class Summary | |
---|---|
abstract static class | NavigationFilter.FilterBypass |
Constructor Summary | |
---|---|
NavigationFilter() |
Method Summary | |
---|---|
int | getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias bias, int dir, Position.Bias[] retBias)
Returns the next visual position in the specified direction at which one
would place a caret. |
void | moveDot(NavigationFilter.FilterBypass fb, int dot, Position.Bias bias) |
void | setDot(NavigationFilter.FilterBypass fb, int dot, Position.Bias bias) |
Parameters: c the text component pos the current model position bias the bias of pos
dir the direction, one of NORTH,
SOUTH,
WEST or
EAST retBias the bias of the returned position
Returns: the next model location to place the caret
Throws: BadLocationException when pos
is not a valid model
position