/[classpath]/classpath/javax/swing/text/BoxView.java
ViewVC logotype

Diff of /classpath/javax/swing/text/BoxView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by rabbit78, Mon Nov 14 12:04:11 2005 UTC revision 1.11 by langel, Thu Nov 17 20:45:13 2005 UTC
# Line 476  public class BoxView Line 476  public class BoxView
476    protected View getViewAtPoint(int x, int y, Rectangle r)    protected View getViewAtPoint(int x, int y, Rectangle r)
477    {    {
478      View result = null;      View result = null;
   
479      int count = getViewCount();      int count = getViewCount();
480      Rectangle copy = new Rectangle(r);      Rectangle copy = new Rectangle(r);
481    
# Line 490  public class BoxView Line 489  public class BoxView
489              break;              break;
490            }            }
491        }        }
492        
493        if (result == null && count > 0)
494          return getView(count - 1);
495      return result;      return result;
496    }    }
497    
# Line 498  public class BoxView Line 499  public class BoxView
499     * Computes the allocation for a child <code>View</code>. The parameter     * Computes the allocation for a child <code>View</code>. The parameter
500     * <code>a</code> stores the allocation of this <code>CompositeView</code>     * <code>a</code> stores the allocation of this <code>CompositeView</code>
501     * and is then adjusted to hold the allocation of the child view.     * and is then adjusted to hold the allocation of the child view.
502     *     *
503     * @param index the index of the child <code>View</code>     * @param index
504     * @param a the allocation of this <code>CompositeView</code> before the     *          the index of the child <code>View</code>
505     *        call, the allocation of the child on exit     * @param a
506       *          the allocation of this <code>CompositeView</code> before the
507       *          call, the allocation of the child on exit
508     */     */
509    protected void childAllocation(int index, Rectangle a)    protected void childAllocation(int index, Rectangle a)
510    {    {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26