Uses of Interface
javax.swing.text.Style
-
Packages that use Style Package Description javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.text.html Provides the classHTMLEditorKitand supporting classes for creating HTML text editors. -
-
Uses of Style in javax.swing
Methods in javax.swing that return Style Modifier and Type Method Description StyleJTextPane. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.StyleJTextPane. getLogicalStyle()Fetches the logical style assigned to the paragraph represented by the current position of the caret, ornull.StyleJTextPane. getStyle(String nm)Fetches a named non-nullstyle previously added.Methods in javax.swing with parameters of type Style Modifier and Type Method Description StyleJTextPane. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.voidJTextPane. setLogicalStyle(Style s)Sets the logical style to use for the paragraph at the current caret position. -
Uses of Style in javax.swing.text
Classes in javax.swing.text that implement Style Modifier and Type Class Description classStyleContext.NamedStyleA collection of attributes, typically used to represent character and paragraph styles.Methods in javax.swing.text that return Style Modifier and Type Method Description StyleDefaultStyledDocument. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.StyleStyleContext. addStyle(String nm, Style parent)Adds a new style into the style hierarchy.StyleStyledDocument. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.StyleDefaultStyledDocument. getLogicalStyle(int p)Fetches the logical style assigned to the paragraph represented by the given position.StyleStyledDocument. getLogicalStyle(int p)Gets a logical style for a given position in a paragraph.StyleDefaultStyledDocument. getStyle(String nm)Fetches a named style previously added.StyleStyleContext. getStyle(String nm)Fetches a named style previously added to the documentStyleStyledDocument. getStyle(String nm)Fetches a named style previously added.Methods in javax.swing.text with parameters of type Style Modifier and Type Method Description StyleDefaultStyledDocument. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.StyleStyleContext. addStyle(String nm, Style parent)Adds a new style into the style hierarchy.StyleStyledDocument. addStyle(String nm, Style parent)Adds a new style into the logical style hierarchy.voidDefaultStyledDocument. setLogicalStyle(int pos, Style s)Sets the logical style to use for the paragraph at the given position.voidStyledDocument. setLogicalStyle(int pos, Style s)Sets the logical style to use for the paragraph at the given position.protected voidDefaultStyledDocument. styleChanged(Style style)Called when any of this document's styles have changed.Constructors in javax.swing.text with parameters of type Style Constructor Description NamedStyle(String name, Style parent)Creates a new named style.NamedStyle(Style parent)Creates a new named style. -
Uses of Style in javax.swing.text.html
Methods in javax.swing.text.html that return Style Modifier and Type Method Description StyleStyleSheet. getRule(String selector)Fetches the rule that best matches the selector given in string form.StyleStyleSheet. getRule(HTML.Tag t, Element e)Fetches the style to use to render the given type of HTML tag.
-