658 |
{ |
{ |
659 |
return false; |
return false; |
660 |
} |
} |
661 |
|
|
662 |
|
/** |
663 |
|
* Returns the document position that is (visually) nearest to the given |
664 |
|
* document position <code>pos</code> in the given direction <code>d</code>. |
665 |
|
* |
666 |
|
* @param c the text component |
667 |
|
* @param pos the document position |
668 |
|
* @param b the bias for <code>pos</code> |
669 |
|
* @param d the direction, must be either {@link SwingConstants#NORTH}, |
670 |
|
* {@link SwingConstants#SOUTH}, {@link SwingConstants#WEST} or |
671 |
|
* {@link SwingConstants#EAST} |
672 |
|
* @param biasRet an array of {@link Position.Bias} that can hold at least |
673 |
|
* one element, which is filled with the bias of the return position |
674 |
|
* on method exit |
675 |
|
* |
676 |
|
* @return the document position that is (visually) nearest to the given |
677 |
|
* document position <code>pos</code> in the given direction |
678 |
|
* <code>d</code> |
679 |
|
* |
680 |
|
* @throws BadLocationException if <code>pos</code> is not a valid offset in |
681 |
|
* the document model |
682 |
|
*/ |
683 |
|
public int getNextVisualPositionFrom(JTextComponent c, int pos, |
684 |
|
Position.Bias b, int d, |
685 |
|
Position.Bias[] biasRet) |
686 |
|
throws BadLocationException |
687 |
|
{ |
688 |
|
// TODO: Implement this properly. |
689 |
|
throw new AssertionError("Not implemented yet."); |
690 |
|
} |
691 |
} |
} |