1 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 |