Package generic.theme

Class GAttributes

All Implemented Interfaces:
Serializable, Cloneable, AttributeSet, MutableAttributeSet

public class GAttributes extends SimpleAttributeSet
A drop-in replacement for clients using SimpleAttributeSets. This class will apply a default set of font attributes based on the given font and optional color.
See Also:
  • Constructor Details

    • GAttributes

      public GAttributes(Font f)
    • GAttributes

      public GAttributes(Font f, GColor c)
  • Method Details

    • toStyledHtml

      public String toStyledHtml(String content)
      A convenience method to style the given text in HTML using the font and color attributes defined in this attribute set. The text will be HTML escaped.
      Parameters:
      content - the content
      Returns:
      the styled content
      See Also: