public interface StyledDocument extends Document
StreamDescriptionProperty, TitleProperty| Modifier and Type | Method and Description |
|---|---|
Style |
addStyle(java.lang.String nm,
Style parent)
addStyle
|
java.awt.Color |
getBackground(AttributeSet set)
getBackground
|
Element |
getCharacterElement(int position)
getCharacterElement
|
java.awt.Font |
getFont(AttributeSet set)
getFont
|
java.awt.Color |
getForeground(AttributeSet set)
getForeground
|
Style |
getLogicalStyle(int position)
getLogicalStyle
|
Element |
getParagraphElement(int position)
getParagraphElement
|
Style |
getStyle(java.lang.String nm)
getStyle
|
void |
removeStyle(java.lang.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, renderStyle addStyle(java.lang.String nm, Style parent)
nm - TODOparent - TODOvoid removeStyle(java.lang.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 - TODOjava.awt.Color getForeground(AttributeSet set)
set - TODOjava.awt.Color getBackground(AttributeSet set)
set - TODOjava.awt.Font getFont(AttributeSet set)
set - TODO