swingwtx.swing.text
Interface StyledDocument
- All Superinterfaces:
- Document
- public interface StyledDocument
- extends Document
Methods inherited from interface swingwtx.swing.text.Document |
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render |
addStyle
public Style addStyle(java.lang.String nm,
Style parent)
removeStyle
public void removeStyle(java.lang.String nm)
getStyle
public Style getStyle(java.lang.String nm)
setCharacterAttributes
public void setCharacterAttributes(int offset,
int length,
AttributeSet s,
boolean replace)
setParagraphAttributes
public void setParagraphAttributes(int offset,
int length,
AttributeSet s,
boolean replace)
setLogicalStyle
public void setLogicalStyle(int pos,
Style s)
getLogicalStyle
public Style getLogicalStyle(int p)
getParagraphElement
public Element getParagraphElement(int pos)
getCharacterElement
public Element getCharacterElement(int pos)
getForeground
public Color getForeground(AttributeSet attr)
getBackground
public Color getBackground(AttributeSet attr)
getFont
public Font getFont(AttributeSet attr)