KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > text > StyledDocument


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: StyledDocument.java,v $
11    Revision 1.1 2004/01/27 09:39:30 bobintetley
12    Text/Document support
13
14
15 */

16
17 package swingwtx.swing.text;
18
19 import swingwt.awt.*;
20
21 public interface StyledDocument extends Document {
22
23     public Style addStyle(String JavaDoc nm, Style parent);
24     public void removeStyle(String JavaDoc nm);
25     public Style getStyle(String JavaDoc 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