1 7 8 package javax.accessibility; 9 10 11 import java.util.*; 12 import java.awt.*; 13 import javax.swing.text.*; 14 15 16 35 public interface AccessibleText { 36 37 45 public static final int CHARACTER = 1; 46 47 55 public static final int WORD = 2; 56 57 65 public static final int SENTENCE = 3; 66 67 76 public int getIndexAtPoint(Point p); 77 78 87 public Rectangle getCharacterBounds(int i); 88 89 94 public int getCharCount(); 95 96 103 public int getCaretPosition(); 104 105 112 public String getAtIndex(int part, int index); 113 114 121 public String getAfterIndex(int part, int index); 122 123 130 public String getBeforeIndex(int part, int index); 131 132 138 public AttributeSet getCharacterAttribute(int i); 139 140 147 public int getSelectionStart(); 148 149 156 public int getSelectionEnd(); 157 158 163 public String getSelectedText(); 164 } 165 | Popular Tags |