Provides a way to determine the next visually represented model location that one might place a caret. Some views may not be visible, they might not be in the same order found in the model, or they just might not allow access to some of the locations in the model.
-
Parameters:
-
v - the view to use
-
pos - the position to convert >= 0
-
b - either Position.Bias.Forward or Position.Bias.Backward
-
a - the allocated region to render into
-
direction - the direction from the current position that can be thought of as the arrow keys typically found on a keyboard. This may be SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, or SwingConstants.SOUTH.
-
biasRet - either Position.Bias.Forward or Position.Bias.Backward is returned as the zero-th element of this array
-
Returns:
- the location within the model that best represents the next location visual position.
-
Throws:
-
BadLocationException - for a bad location within a document model
-
IllegalArgumentException - for an invalid direction
|