1 7 package javax.swing.text; 8 9 import java.awt.Font ; 10 import java.awt.Color ; 11 12 18 public interface StyledDocument extends Document { 19 20 36 public Style addStyle(String nm, Style parent); 37 38 43 public void removeStyle(String nm); 44 45 51 public Style getStyle(String nm); 52 53 72 public void setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace); 73 74 87 public void setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace); 88 89 100 public void setLogicalStyle(int pos, Style s); 101 102 108 public Style getLogicalStyle(int p); 109 110 117 public Element getParagraphElement(int pos); 118 119 126 public Element getCharacterElement(int pos); 127 128 129 137 public Color getForeground(AttributeSet attr); 138 139 147 public Color getBackground(AttributeSet attr); 148 149 158 public Font getFont(AttributeSet attr); 159 160 } 161 | Popular Tags |