@Override
  protected void doPaint(Graphics2D g) {
    if (myHaveLink) {
      Graphics2D textGraphics = (Graphics2D)g.create(0, 0, myLinkOffset, getHeight());
      try {
        super.doPaint(textGraphics);
      }
      finally {
        textGraphics.dispose();
      }
      g.translate(myLinkOffset, 0);
      myLink.setSize(myLink.getWidth(), getHeight());
      myLink.doPaint(g);
      g.translate(-myLinkOffset, 0);
    }
    else {
      super.doPaint(g);
    }
  }
@Override
  protected void doPaint(Graphics2D g)