code: protected void paintText(SeaGlassContext ss, Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title,
              Rectangle textRect, boolean isSelected) {
          g.setFont(font);
  
          View v = getTextViewForTab(tabIndex);
  
          if (v != null) {
              // html
              v.paint(g, textRect);
          } else {
              // plain text
              int mnemIndex = tabPane.getDisplayedMnemonicIndexAt(tabIndex);
              FontMetrics    fm = SwingUtilities2.getFontMetrics(tabPane, g);
              title = SwingUtilities2.clipStringIfNecessary(tabPane, fm, title, textRect.width);
              g.setColor(ss.getStyle().getColor(ss, ColorType.TEXT_FOREGROUND));
              ss.getStyle().getGraphicsUtils(ss).paintText(ss, g, title, textRect, mnemIndex);
          }
      }
docs: Paint the label text for a tab.
  
  @param ss           the SynthContext.
  @param g            the Graphics context.
  @param tabPlacement the side the tabs are on.
  @param font         the font to use.
  @param metrics      the font metrics.
  @param tabIndex     the index of the tab to lay out.
  @param title        the text for the label, if any.
  @param textRect     Rectangle to place text in
  @param isSelected   is the tab selected?