1 7 package javax.swing.text; 8 9 import java.awt.Graphics ; 10 import java.awt.Point ; 11 import javax.swing.Action ; 12 import javax.swing.event.ChangeListener ; 13 14 35 public interface Caret { 36 37 45 public void install(JTextComponent c); 46 47 54 public void deinstall(JTextComponent c); 55 56 61 public void paint(Graphics g); 62 63 69 public void addChangeListener(ChangeListener l); 70 71 76 public void removeChangeListener(ChangeListener l); 77 78 83 public boolean isVisible(); 84 85 91 public void setVisible(boolean v); 92 93 98 public boolean isSelectionVisible(); 99 100 106 public void setSelectionVisible(boolean v); 107 108 120 public void setMagicCaretPosition(Point p); 121 122 128 public Point getMagicCaretPosition(); 129 130 138 public void setBlinkRate(int rate); 139 140 148 public int getBlinkRate(); 149 150 155 public int getDot(); 156 157 164 public int getMark(); 165 166 173 public void setDot(int dot); 174 175 182 public void moveDot(int dot); 183 184 }; 185 186 | Popular Tags |