Class GAttributes
java.lang.Object
javax.swing.text.SimpleAttributeSet
generic.theme.GAttributes
- All Implemented Interfaces:
Serializable, Cloneable, AttributeSet, MutableAttributeSet
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute -
Field Summary
Fields inherited from class SimpleAttributeSet
EMPTYFields inherited from interface AttributeSet
NameAttribute, ResolveAttribute -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoStyledHtml(String content) A convenience method to style the given text in HTML using the font and color attributes defined in this attribute set.Methods inherited from class SimpleAttributeSet
addAttribute, addAttributes, clone, containsAttribute, containsAttributes, copyAttributes, equals, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, hashCode, isDefined, isEmpty, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent, toString
-
Constructor Details
-
GAttributes
-
GAttributes
-
-
Method Details
-
toStyledHtml
-