equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
711 * <li><code>SwingConstants.SOUTH</code> |
711 * <li><code>SwingConstants.SOUTH</code> |
712 * </ul> |
712 * </ul> |
713 * @param biasRet an array containing the bias that was checked |
713 * @param biasRet an array containing the bias that was checked |
714 * @return the location within the model that best represents the next |
714 * @return the location within the model that best represents the next |
715 * north or south location |
715 * north or south location |
716 * @exception BadLocationException |
716 * @exception BadLocationException for a bad location within a document model |
717 * @exception IllegalArgumentException if <code>direction</code> is invalid |
717 * @exception IllegalArgumentException if <code>direction</code> is invalid |
718 * @see #getNextVisualPositionFrom |
718 * @see #getNextVisualPositionFrom |
719 * |
719 * |
720 * @return the next position west of the passed in position |
720 * @return the next position west of the passed in position |
721 */ |
721 */ |
743 * <li><code>SwingConstants.EAST</code> |
743 * <li><code>SwingConstants.EAST</code> |
744 * </ul> |
744 * </ul> |
745 * @param biasRet an array containing the bias that was checked |
745 * @param biasRet an array containing the bias that was checked |
746 * @return the location within the model that best represents the next |
746 * @return the location within the model that best represents the next |
747 * west or east location |
747 * west or east location |
748 * @exception BadLocationException |
748 * @exception BadLocationException for a bad location within a document model |
749 * @exception IllegalArgumentException if <code>direction</code> is invalid |
749 * @exception IllegalArgumentException if <code>direction</code> is invalid |
750 * @see #getNextVisualPositionFrom |
750 * @see #getNextVisualPositionFrom |
751 */ |
751 */ |
752 protected int getNextEastWestVisualPositionFrom(int pos, Position.Bias b, |
752 protected int getNextEastWestVisualPositionFrom(int pos, Position.Bias b, |
753 Shape a, |
753 Shape a, |