Example usage for Java javax.swing.text StyleContext fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT_STYLE The name given to the default logical style attached to paragraphs. |
StyleContext() Creates a new StyleContext object. |
AttributeSet | addAttribute(AttributeSet old, Object name, Object value) Adds an attribute to the given set, and returns the new representative set. |
Style | addStyle(String nm, Style parent) Adds a new style into the style hierarchy. |
StyleContext | getDefaultStyleContext() Returns default AttributeContext shared by all documents that don't bother to define/supply their own context. |
Font | getFont(AttributeSet attr) Gets the font from an attribute set. |
Font | getFont(String family, int style, int size) Gets a new font. |
Style | getStyle(String nm) Fetches a named style previously added to the document |