o = atts.getAttribute(CSS.Attribute.WHITE_SPACE); if (o != null && o.equals("nowrap")) nowrap = true; else nowrap = false;
  protected void setPropertiesFromAttributes()  {    super.setPropertiesFromAttributes();    AttributeSet atts = getAttributes();    Object o = atts.getAttribute(CSS.Attribute.TEXT_DECORATION);    // Check for underline.    boolean b = false;    if (o != null && o.toString().contains("underline"))      b = true;    setUnderline(b);    // Check for line-through.    b = false;    if (o != null && o.toString().contains("line-through"))      b = true;    setStrikeThrough(b);    // Check for vertical alignment (subscript/superscript).    o = atts.getAttribute(CSS.Attribute.VERTICAL_ALIGN);    // Subscript.    b = false;    if (o != null && o.toString().contains("sub"))      b = true;    setSubscript(b);    // Superscript.    b = false;    if (o != null && o.toString().contains("sup"))      b = true;    setSuperscript(b);    // TODO: Handle white-space: nowrap property.  }