1 16 17 package swingwtx.swing.text; 18 19 import swingwt.awt.*; 20 21 public interface StyledDocument extends Document { 22 23 public Style addStyle(String nm, Style parent); 24 public void removeStyle(String nm); 25 public Style getStyle(String nm); 26 public void setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace); 27 public void setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace); 28 public void setLogicalStyle(int pos, Style s); 29 public Style getLogicalStyle(int p); 30 public Element getParagraphElement(int pos); 31 public Element getCharacterElement(int pos); 32 public Color getForeground(AttributeSet attr); 33 public Color getBackground(AttributeSet attr); 34 public Font getFont(AttributeSet attr); 35 36 } 37 38 | Popular Tags |