jdk/src/java.desktop/share/classes/javax/swing/text/View.java
changeset 42216 621af0ebf6c4
parent 30462 507bcb03c954
equal deleted inserted replaced
42215:4efb5b19587b 42216:621af0ebf6c4
   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