code: protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {
          switch (state) {
  
          case FOREGROUND_DISABLED:
              paintForegroundDisabled(g, width, height);
              break;
  
          case FOREGROUND_ENABLED:
              paintForegroundEnabled(g, width, height);
              break;
  
          case FOREGROUND_PRESSED:
              paintForegroundPressed(g, width, height);
              break;
          }
      }
docs: {@inheritDoc}