FontMetrics fm = gfx.getFontMetrics(); int vpad = (box.height - fm.getHeight()) / 2 ;
  public void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box) {    FontMetrics fm = gfx.getFontMetrics();    int vpad = (box.height - fm.getHeight()) / 2 ;    if (m_Enabled && m_Object != null) {      String rep = m_Object.getClass().getName();      int dotPos = rep.lastIndexOf('.');      if (dotPos != -1) {	rep = rep.substring(dotPos + 1);      }      if (m_Object instanceof OptionHandler) {	rep += " " + Utils.joinOptions(((OptionHandler)m_Object)				       .getOptions());      }      //gfx.clearRect(0, 0, box.width, box.height);      //gfx.drawRect(0, 0, box.width, box.height);      gfx.drawString(rep, 2, fm.getHeight() + vpad);    } else {    }  }