/**
  * Return the font.
  *
  * @return the font
  */
 public SFont getSelectionFont() {
   return dynamicStyles == null || dynamicStyles.get(SELECTOR_SELECTION) == null
       ? null
       : CSSStyleSheet.getFont((CSSAttributeSet) dynamicStyles.get(SELECTOR_SELECTION));
 }
 /**
  * Set the font.
  *
  * @param font the new font
  */
 public void setSelectionFont(SFont font) {
   setAttributes(SELECTOR_SELECTION, CSSStyleSheet.getAttributes(font));
 }
 /**
  * Return the foreground color.
  *
  * @return the foreground color
  */
 public Color getSelectionForeground() {
   return dynamicStyles == null || dynamicStyles.get(SELECTOR_SELECTION) == null
       ? null
       : CSSStyleSheet.getForeground((CSSAttributeSet) dynamicStyles.get(SELECTOR_SELECTION));
 }
 /**
  * Set the foreground color.
  *
  * @param color the new foreground color
  */
 public void setSelectionForeground(Color color) {
   setAttribute(SELECTOR_SELECTION, CSSProperty.COLOR, CSSStyleSheet.getAttribute(color));
 }
 /**
  * Set the foreground color.
  *
  * @param color the new foreground color
  */
 public void setSelectionBackground(Color color) {
   setAttribute(
       SELECTOR_SELECTION, CSSProperty.BACKGROUND_COLOR, CSSStyleSheet.getAttribute(color));
 }