equal
deleted
inserted
replaced
499 * @exception BadLocationException the given position is not a valid |
499 * @exception BadLocationException the given position is not a valid |
500 * position within the document |
500 * position within the document |
501 * @exception IllegalArgumentException if <code>direction</code> |
501 * @exception IllegalArgumentException if <code>direction</code> |
502 * doesn't have one of the legal values above |
502 * doesn't have one of the legal values above |
503 */ |
503 */ |
|
504 @SuppressWarnings("deprecation") |
504 public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, |
505 public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, |
505 int direction, Position.Bias[] biasRet) |
506 int direction, Position.Bias[] biasRet) |
506 throws BadLocationException { |
507 throws BadLocationException { |
507 if (pos < -1 || pos > getDocument().getLength()) { |
508 if (pos < -1 || pos > getDocument().getLength()) { |
508 // -1 is a reserved value, see the code below |
509 // -1 is a reserved value, see the code below |