Uses of Interface
javax.swing.text.Style
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.-
Uses of Style in javax.swing
Modifier and TypeMethodDescriptionAdds a new style into the logical style hierarchy.JTextPane.getLogicalStyle()
Fetches the logical style assigned to the paragraph represented by the current position of the caret, ornull
.Fetches a named non-null
style previously added. -
Uses of Style in javax.swing.text
Modifier and TypeClassDescriptionclass
A collection of attributes, typically used to represent character and paragraph styles.Modifier and TypeMethodDescriptionAdds a new style into the logical style hierarchy.Adds a new style into the style hierarchy.Adds a new style into the logical style hierarchy.DefaultStyledDocument.getLogicalStyle
(int p) Fetches the logical style assigned to the paragraph represented by the given position.StyledDocument.getLogicalStyle
(int p) Gets a logical style for a given position in a paragraph.Fetches a named style previously added.Fetches a named style previously added to the documentFetches a named style previously added.Modifier and TypeMethodDescriptionAdds a new style into the logical style hierarchy.Adds a new style into the style hierarchy.Adds a new style into the logical style hierarchy.void
DefaultStyledDocument.setLogicalStyle
(int pos, Style s) Sets the logical style to use for the paragraph at the given position.void
StyledDocument.setLogicalStyle
(int pos, Style s) Sets the logical style to use for the paragraph at the given position.protected void
DefaultStyledDocument.styleChanged
(Style style) Called when any of this document's styles have changed.ModifierConstructorDescriptionNamedStyle
(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