Returns the next visual position to place the caret at from an
existing position. The default implementation simply forwards the
method to the root View. Subclasses may wish to further restrict the
location based on additional criteria.
Returns:
the location within the model that best represents the next
location visual position
Parameters:
-
text - JTextComponent containing text
-
pos - Position used in determining next position
-
bias - Bias used in determining next position
-
direction - the direction from the current position that can
be thought of as the arrow keys typically found on a keyboard.
This will be one of the following values:
- SwingConstants.WEST
- SwingConstants.EAST
- SwingConstants.NORTH
- SwingConstants.SOUTH
-
biasRet - Used to return resulting Bias of next position
Throws:
-
BadLocationException -
-
IllegalArgumentException - if
direction
doesn't have one of the legal values above