Java javax.swing.text StyleContext fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text StyleContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text StyleContext.

The text is from its open source code.

Subclass

javax.swing.text.StyleContext has subclasses.
Click this link to see all its subclasses.

Field

StringDEFAULT_STYLE
The name given to the default logical style attached to paragraphs.

Constructor

StyleContext()
Creates a new StyleContext object.

Method

AttributeSetaddAttribute(AttributeSet old, Object name, Object value)
Adds an attribute to the given set, and returns the new representative set.
StyleaddStyle(String nm, Style parent)
Adds a new style into the style hierarchy.
StyleContextgetDefaultStyleContext()
Returns default AttributeContext shared by all documents that don't bother to define/supply their own context.
FontgetFont(AttributeSet attr)
Gets the font from an attribute set.
FontgetFont(String family, int style, int size)
Gets a new font.
StylegetStyle(String nm)
Fetches a named style previously added to the document