334 |
* Returns the document position that is (visually) nearest to the given |
* Returns the document position that is (visually) nearest to the given |
335 |
* document position <code>pos</code> in the given direction <code>d</code>. |
* document position <code>pos</code> in the given direction <code>d</code>. |
336 |
* |
* |
|
* @param c the text component |
|
337 |
* @param pos the document position |
* @param pos the document position |
338 |
* @param b the bias for <code>pos</code> |
* @param b the bias for <code>pos</code> |
339 |
|
* @param a the allocation for the view |
340 |
* @param d the direction, must be either {@link SwingConstants#NORTH}, |
* @param d the direction, must be either {@link SwingConstants#NORTH}, |
341 |
* {@link SwingConstants#SOUTH}, {@link SwingConstants#WEST} or |
* {@link SwingConstants#SOUTH}, {@link SwingConstants#WEST} or |
342 |
* {@link SwingConstants#EAST} |
* {@link SwingConstants#EAST} |
351 |
* @throws BadLocationException if <code>pos</code> is not a valid offset in |
* @throws BadLocationException if <code>pos</code> is not a valid offset in |
352 |
* the document model |
* the document model |
353 |
*/ |
*/ |
354 |
public int getNextVisualPositionFrom(JTextComponent c, int pos, |
public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, |
355 |
Position.Bias b, int d, |
int d, Position.Bias[] biasRet) |
|
Position.Bias[] biasRet) |
|
356 |
throws BadLocationException |
throws BadLocationException |
357 |
{ |
{ |
358 |
return view.getNextVisualPositionFrom(c, pos, b, d, biasRet); |
return view.getNextVisualPositionFrom(pos, b, a, d, biasRet); |
359 |
} |
} |
360 |
} |
} |
361 |
|
|