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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

DefaultStyledDocument(StyleContext styles)
Constructs a styled document with the default content storage implementation and a shared set of styles.
DefaultStyledDocument()
Constructs a default styled document.

Method

voiddump(PrintStream out)
Gives a diagnostic dump.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ElementgetCharacterElement(int pos)
Gets a character element based on a position.
ElementgetDefaultRootElement()
Gets the default root element.
intgetLength()
Returns the length of the data.
StylegetStyle(String nm)
Fetches a named style previously added.
EnumerationgetStyleNames()
Fetches the list of style names.
StringgetText(int offset, int length)
Gets a sequence of text from the document.
voidinsertString(int offs, String str, AttributeSet a)
Inserts some content into the document.
voidsetCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)
Sets attributes for some part of the document.
voidsetLogicalStyle(int pos, Style s)
Sets the logical style to use for the paragraph at the given position.
voidsetParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)
Sets attributes for a paragraph.