public interface StyledDocument extends Document
StreamDescriptionProperty, TitleProperty
Modifier and Type | Method and Description |
---|---|
Style |
addStyle(String nm,
Style parent)
addStyle
|
Color |
getBackground(AttributeSet set)
getBackground
|
Element |
getCharacterElement(int position)
getCharacterElement
|
Font |
getFont(AttributeSet set)
getFont
|
Color |
getForeground(AttributeSet set)
getForeground
|
Style |
getLogicalStyle(int position)
getLogicalStyle
|
Element |
getParagraphElement(int position)
getParagraphElement
|
Style |
getStyle(String nm)
getStyle
|
void |
removeStyle(String nm)
removeStyle
|
void |
setCharacterAttributes(int offset,
int length,
AttributeSet set,
boolean replace)
setCharacterAttributes
|
void |
setLogicalStyle(int position,
Style style)
setLogicalStyle
|
void |
setParagraphAttributes(int offset,
int length,
AttributeSet set,
boolean replace)
setParagraphAttributes
|
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
void removeStyle(String nm)
nm
- TODOvoid setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace)
offset
- TODOlength
- TODOset
- TODOreplace
- TODOvoid setParagraphAttributes(int offset, int length, AttributeSet set, boolean replace)
offset
- TODOlength
- TODOset
- TODOreplace
- TODOStyle getLogicalStyle(int position)
position
- TODOvoid setLogicalStyle(int position, Style style)
position
- TODOstyle
- TODOElement getParagraphElement(int position)
position
- TODOElement getCharacterElement(int position)
position
- TODOColor getForeground(AttributeSet set)
set
- TODOColor getBackground(AttributeSet set)
set
- TODOFont getFont(AttributeSet set)
set
- TODO