|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StyledDocument
StyledDocument
Field Summary |
---|
Fields inherited from interface javax.swing.text.Document |
---|
StreamDescriptionProperty, TitleProperty |
Method Summary | |
---|---|
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 |
Methods inherited from interface javax.swing.text.Document |
---|
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render |
Method Detail |
---|
Style addStyle(String nm, Style parent)
nm
- TODOparent
- TODOvoid removeStyle(String nm)
nm
- TODOStyle getStyle(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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |