KickJava   Java API By Example, From Geeks To Geeks.

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


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: Caret.java,v $
11    Revision 1.1 2004/03/18 16:21:37 bobintetley
12    JTextComponent/Caret implementation and fix to JFileChooser for bug in GNU classpath
13
14
15 */

16
17 package swingwtx.swing.text;
18
19 import swingwt.awt.Graphics;
20 import swingwt.awt.Point;
21 import swingwtx.swing.event.ChangeListener;
22
23 public interface Caret {
24     public void install(JTextComponent c);
25     public void deinstall(JTextComponent c);
26     public void paint(Graphics g);
27     public void addChangeListener(ChangeListener l);
28     public void removeChangeListener(ChangeListener l);
29     public boolean isVisible();
30     public void setVisible(boolean v);
31     public boolean isSelectionVisible();
32     public void setSelectionVisible(boolean v);
33     public void setMagicCaretPosition(Point p);
34     public Point getMagicCaretPosition();
35     public void setBlinkRate(int rate);
36     public int getBlinkRate();
37     public int getDot();
38     public int getMark();
39     public void setDot(int dot);
40     public void moveDot(int dot);
41 }
Popular Tags