code: protected void paint (Graphics2D gfx, int x, int y, Color background, Object cliData)
      {
          // turn on anti-aliasing (for our sausage lines)
          Object oalias = SwingUtil.activateAntiAliasing(gfx);
  
          // draw the base sausage
          gfx.setColor(background);
          drawBase(gfx, x, y);
  
          // render our icon if we've got one
          drawIcon(gfx, x, y, cliData);
  
          drawLabel(gfx, x, y);
          drawBorder(gfx, x, y);
  
          drawExtras(gfx, x, y, cliData);
  
          // restore original hints
          SwingUtil.restoreAntiAliasing(gfx, oalias);
      }
docs: Paints the label sausage.