/[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.3 by rabbit78, Thu Aug 25 18:55:28 2005 UTC revision 1.4 by rabbit78, Tue Sep 13 23:44:49 2005 UTC
# Line 221  public class BoxView Line 221  public class BoxView
221    protected void paintChild(Graphics g, Rectangle alloc, int index)    protected void paintChild(Graphics g, Rectangle alloc, int index)
222    {    {
223      View child = getView(index);      View child = getView(index);
     childAllocation(index, alloc);  
224      child.paint(g, alloc);      child.paint(g, alloc);
225    }    }
226    
# Line 306  public class BoxView Line 305  public class BoxView
305      int count = getViewCount();      int count = getViewCount();
306      for (int i = 0; i < count; ++i)      for (int i = 0; i < count; ++i)
307        {        {
         // TODO: Figure out if the parameter to paintChild is meant to  
         // be the child allocation or the allocation of this BoxView.  
         // I assume the second option here.  
         // We pass this method a copy of the inside rectangle here because  
         // it modifies the actual values.  
308          copy.setBounds(inside);          copy.setBounds(inside);
309            childAllocation(i, copy);
310          paintChild(g, copy, i);          paintChild(g, copy, i);
311        }        }
312    }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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