if (view == null) return null;
    protected Rectangle modelToView(int position, Shape a, Position.Bias bias)      throws BadLocationException    {      return ((PlainView) view).modelToView(position, a, bias).getBounds();    }