swingwtx.swing.text
Interface StyledDocument

All Superinterfaces:
Document

public interface StyledDocument
extends Document


Field Summary
 
Fields inherited from interface swingwtx.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Method Summary
 Style addStyle(java.lang.String nm, Style parent)
           
 Color getBackground(AttributeSet attr)
           
 Element getCharacterElement(int pos)
           
 Font getFont(AttributeSet attr)
           
 Color getForeground(AttributeSet attr)
           
 Style getLogicalStyle(int p)
           
 Element getParagraphElement(int pos)
           
 Style getStyle(java.lang.String nm)
           
 void removeStyle(java.lang.String nm)
           
 void setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)
           
 void setLogicalStyle(int pos, Style s)
           
 void setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)
           
 
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
 

Method Detail

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)