javax.swing.text

Interface StyledDocument

public interface StyledDocument extends Document

StyledDocument
Method Summary
StyleaddStyle(String nm, Style parent)
addStyle
ColorgetBackground(AttributeSet set)
getBackground
ElementgetCharacterElement(int position)
getCharacterElement
FontgetFont(AttributeSet set)
getFont
ColorgetForeground(AttributeSet set)
getForeground
StylegetLogicalStyle(int position)
getLogicalStyle
ElementgetParagraphElement(int position)
getParagraphElement
StylegetStyle(String nm)
getStyle
voidremoveStyle(String nm)
removeStyle
voidsetCharacterAttributes(int offset, int length, AttributeSet set, boolean replace)
setCharacterAttributes
voidsetLogicalStyle(int position, Style style)
setLogicalStyle
voidsetParagraphAttributes(int offset, int length, AttributeSet set, boolean replace)
setParagraphAttributes

Method Detail

addStyle

public Style addStyle(String nm, Style parent)
addStyle

Parameters: nm TODO parent TODO

UNKNOWN: Style

getBackground

public Color getBackground(AttributeSet set)
getBackground

Parameters: set TODO

UNKNOWN: Color

getCharacterElement

public Element getCharacterElement(int position)
getCharacterElement

Parameters: position TODO

UNKNOWN: Element

getFont

public Font getFont(AttributeSet set)
getFont

Parameters: set TODO

UNKNOWN: Font

getForeground

public Color getForeground(AttributeSet set)
getForeground

Parameters: set TODO

UNKNOWN: Color

getLogicalStyle

public Style getLogicalStyle(int position)
getLogicalStyle

Parameters: position TODO

UNKNOWN: Style

getParagraphElement

public Element getParagraphElement(int position)
getParagraphElement

Parameters: position TODO

UNKNOWN: Element

getStyle

public Style getStyle(String nm)
getStyle

Parameters: nm TODO

UNKNOWN: Style

removeStyle

public void removeStyle(String nm)
removeStyle

Parameters: nm TODO

setCharacterAttributes

public void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace)
setCharacterAttributes

Parameters: offset TODO length TODO set TODO replace TODO

setLogicalStyle

public void setLogicalStyle(int position, Style style)
setLogicalStyle

Parameters: position TODO style TODO

setParagraphAttributes

public void setParagraphAttributes(int offset, int length, AttributeSet set, boolean replace)
setParagraphAttributes

Parameters: offset TODO length TODO set TODO replace TODO