if (childAlloc == null) ret = createDefaultLocation(a, bias);  Shape result = child.modelToView(pos, childAlloc, bias);  if (result != null) ret = result;
if (childAlloc != null) { ret = child.modelToView(pos, childAlloc, bias);  if (ret == null && child.getEndOffset() == pos) { childIndex++; if (childIndex < getViewCount()) { child = getView(childIndex); childAlloc = getChildAllocation(childIndex, a); ret = child.modelToView(pos, childAlloc, bias); } } } } }
  public Shape modelToView(int pos, Shape a, Position.Bias bias)    throws BadLocationException  {    int childIndex = getViewIndex(pos, bias);    if (childIndex == -1)      throw new BadLocationException("Position " + pos + " is not represented by view.", pos);          Shape ret = null;        View child = getView(childIndex);        Shape childAlloc = getChildAllocation(childIndex, a);            if (childAlloc == null)          ret = createDefaultLocation(a, bias);            Shape result = child.modelToView(pos, childAlloc, bias);        if (result != null)          ret = result;        else          ret =  createDefaultLocation(a, bias);    return ret;  }