background = StyleConstants.getBackground(atts);
background = (Color) atts.getAttribute(StyleConstants.Background);
  protected void setPropertiesFromAttributes()  {    Element el = getElement();    AttributeSet atts = el.getAttributes();    background = StyleConstants.getBackground(atts);    foreground = StyleConstants.getForeground(atts);    strikeThrough = StyleConstants.isStrikeThrough(atts);    subscript = StyleConstants.isSubscript(atts);    superscript = StyleConstants.isSuperscript(atts);    underline = StyleConstants.isUnderline(atts);    // Determine the font.    String family = StyleConstants.getFontFamily(atts);    int size = StyleConstants.getFontSize(atts);    int style = Font.PLAIN;    if (StyleConstants.isBold(atts))        style |= Font.BOLD;    if (StyleConstants.isItalic(atts))      style |= Font.ITALIC;    font = new Font(family, style, size);  }