javax.accessibility
Class AccessibleAttributeSequence

java.lang.Object
  extended by javax.accessibility.AccessibleAttributeSequence

public class AccessibleAttributeSequence
extends Object

This is a convenience class that wraps together a sequence of text with the attributes applied to it. This allows a single object to be used when AccessibleContext.ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED events are fired.

Since:
1.5

Field Summary
 AttributeSet attributes
          The attributes of the text.
 int endIndex
          The ending index.
 int startIndex
          The starting index.
 
Constructor Summary
AccessibleAttributeSequence(int start, int end, AttributeSet attr)
          Creates a new instance using the specified attributes and the supplied start and end indicies.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

public AttributeSet attributes
The attributes of the text.


startIndex

public int startIndex
The starting index.


endIndex

public int endIndex
The ending index.

Constructor Detail

AccessibleAttributeSequence

public AccessibleAttributeSequence(int start,
                                   int end,
                                   AttributeSet attr)
Creates a new instance using the specified attributes and the supplied start and end indicies.

Parameters:
start - the index of the start of the text.
end - the index of the end of the text.
attr - the attributes applied to the text sequence.
Since:
1.6