@ Override public int getNextVisualPositionFrom ( int pos , Position . Bias b , Shape a , int direction , Position . Bias [ ] biasRet ) throws BadLocationException { if ( view != null ) { int nextPos = view . getNextVisualPositionFrom ( pos , b , a , direction , biasRet ) ; if ( nextPos != - 1 ) { pos = nextPos ; } else { biasRet [ 0 ] = b ; } } return pos ; }
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 .