API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.accessibility. AccessibleText View Source
Author(s)
Peter Korn
Since
Version
1.30 11/17/05
Serial
Hierarchy
 AccessibleText
Subinterfaces
Description
public interface AccessibleText
  The AccessibleText interface should be implemented by all classes that present textual information on the display.
Methods
Hide/Show inherited methods
public String getAfterIndex (int part, int index)
  Returns the String after a given index.
public String getAtIndex (int part, int index)
  Returns the String at a given index.
public String getBeforeIndex (int part, int index)
  Returns the String before a given index.
public int getCaretPosition ()
  Returns the zero-based offset of the caret.
public AttributeSet getCharacterAttribute (int i)
  Returns the AttributeSet for a given character at a given index
public Rectangle getCharacterBounds (int i)
  Determines the bounding box of the character at the given index into the string.
public int getCharCount ()
  Returns the number of characters (valid indicies)
public int getIndexAtPoint (Point p)
  Given a point in local coordinates, return the zero-based index of the character under that Point.
public String getSelectedText ()
  Returns the portion of the text that is selected.
public int getSelectionEnd ()
  Returns the end offset within the selected text.
public int getSelectionStart ()
  Returns the start offset within the selected text.
Fields
Hide/Show inherited fields
publicfinalstatic int CHARACTER = "1"
  Constant used to indicate that the part of the text that should be retrieved is a character.
publicfinalstatic int SENTENCE = "3"
  Constant used to indicate that the part of the text that should be retrieved is a sentence.
publicfinalstatic int WORD = "2"
  Constant used to indicate that the part of the text that should be retrieved is a word.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar