Home » openjdk-7 » javax » accessibility » [javadoc | source]
javax.accessibility
public interface: AccessibleExtendedText [javadoc | source]

All Known Implementing Classes:
    AccessibleJTextComponent

The AccessibleExtendedText interface contains additional methods not provided by the AccessibleText interface Applications can determine if an object supports the AccessibleExtendedText interface by first obtaining its AccessibleContext (see Accessible ) and then calling the AccessibleContext#getAccessibleText method of AccessibleContext. If the return value is an instance of AccessibleExtendedText, the object supports this interface.

Field Summary
public static final  int LINE    Constant used to indicate that the part of the text that should be retrieved is a line of text.
    Also see:
    AccessibleText#getAtIndex
    AccessibleText#getAfterIndex
    AccessibleText#getBeforeIndex
 
public static final  int ATTRIBUTE_RUN    Constant used to indicate that the part of the text that should be retrieved is contiguous text with the same text attributes.
    Also see:
    AccessibleText#getAtIndex
    AccessibleText#getAfterIndex
    AccessibleText#getBeforeIndex
 
Method from javax.accessibility.AccessibleExtendedText Summary:
getTextBounds,   getTextRange,   getTextSequenceAfter,   getTextSequenceAt,   getTextSequenceBefore
Method from javax.accessibility.AccessibleExtendedText Detail:
 public Rectangle getTextBounds(int startIndex,
    int endIndex)
    Returns the bounding rectangle of the text between two indices.
 public String getTextRange(int startIndex,
    int endIndex)
    Returns the text between two indices
 public AccessibleTextSequence getTextSequenceAfter(int part,
    int index)
    Returns the AccessibleTextSequence after a given index.
 public AccessibleTextSequence getTextSequenceAt(int part,
    int index)
    Returns the AccessibleTextSequence at a given index.
 public AccessibleTextSequence getTextSequenceBefore(int part,
    int index)
    Returns the AccessibleTextSequence before a given index.