221 |
if (childIndex != -1) |
if (childIndex != -1) |
222 |
{ |
{ |
223 |
View child = getView(childIndex); |
View child = getView(childIndex); |
224 |
Shape result = child.modelToView(pos, a, bias); |
Rectangle r = a.getBounds(); |
225 |
|
childAllocation(childIndex, r); |
226 |
|
Shape result = child.modelToView(pos, r, bias); |
227 |
if (result == null) |
if (result == null) |
228 |
throw new AssertionError("" + child.getClass().getName() |
throw new AssertionError("" + child.getClass().getName() |
229 |
+ ".modelToView() must not return null"); |
+ ".modelToView() must not return null"); |
230 |
return result; |
return result; |
231 |
} |
} |
232 |
else |
else |
233 |
{ |
throw new BadLocationException("No child view for the specified location", |
234 |
// FIXME: Handle the case when we have no child view for the given |
pos); |
|
// position. |
|
|
throw new AssertionError("No child views found where child views are " |
|
|
+ "expected. pos = " + pos + ", bias = " |
|
|
+ bias); |
|
|
} |
|
235 |
} |
} |
236 |
|
|
237 |
/** |
/** |