Example usage for Java javax.swing.text DefaultStyledDocument fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | dump(PrintStream out) Gives a diagnostic dump. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
Element | getCharacterElement(int pos) Gets a character element based on a position. |
Element | getDefaultRootElement() Gets the default root element. |
int | getLength() Returns the length of the data. |
Style | getStyle(String nm) Fetches a named style previously added. |
Enumeration> | getStyleNames() Fetches the list of style names. |
String | getText(int offset, int length) Gets a sequence of text from the document. |
void | insertString(int offs, String str, AttributeSet a) Inserts some content into the document. |
void | setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace) Sets attributes for some part of the document. |
void | setLogicalStyle(int pos, Style s) Sets the logical style to use for the paragraph at the given position. |
void | setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace) Sets attributes for a paragraph. |