AttributeSet atts = getAttributes(); Object o = atts.getAttribute(CSS.Attribute.TEXT_DECORATION);   boolean b = false; if (o != null && o.toString().contains("underline")) b = true; setUnderline(b);   b = false; if (o != null && o.toString().contains("line-through")) b = true; setStrikeThrough(b);   o = atts.getAttribute(CSS.Attribute.VERTICAL_ALIGN);   b = false; if (o != null && o.toString().contains("sub")) b = true; setSubscript(b);   b = false; if (o != null && o.toString().contains("sup")) b = true; setSuperscript(b);
  protected void setPropertiesFromAttributes()  {    // FIXME: Implement this.    super.setPropertiesFromAttributes();  }