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 {@link javax.swing.SwingConstants#NORTH},
{@link javax.swing.SwingConstants#SOUTH},
{@link javax.swing.SwingConstants#WEST} or
{@link javax.swing.SwingConstants#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