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 |
|
|
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 |
} |
} |