API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. AttributedString View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Object
      AttributedString
Implements
Subclasses
Description
public class AttributedString
  An AttributedString holds text and related attribute information.
Constructors
public AttributedString (AttributedCharacterIterator text)
  Constructs an AttributedString instance with the given attributed text represented by AttributedCharacterIterator.
pack-private AttributedString (AttributedCharacterIterator iterators)
  Constructs an AttributedString instance with the given AttributedCharacterIterators.
public AttributedString (AttributedCharacterIterator text, int beginIndex, int endIndex)
  Constructs an AttributedString instance with the subrange of the given attributed text represented by AttributedCharacterIterator.
public AttributedString (AttributedCharacterIterator text, int beginIndex, int endIndex, Attribute attributes)
  Constructs an AttributedString instance with the subrange of the given attributed text represented by AttributedCharacterIterator.
public AttributedString (String text)
  Constructs an AttributedString instance with the given text.
public AttributedString (String text, Map<Attribute, Object> attributes)
  Constructs an AttributedString instance with the given text and attributes.
Methods
Hide/Show inherited methods
public void addAttribute (Attribute attribute, Object value)
  Adds an attribute to the entire string.
public void addAttribute (Attribute attribute, Object value, int beginIndex, int endIndex)
  Adds an attribute to a subrange of the string.
public void addAttributes (Map<Attribute, Object> attributes, int beginIndex, int endIndex)
  Adds a set of attributes to a subrange of the string.
public AttributedCharacterIterator getIterator ()
  Creates an AttributedCharacterIterator instance that provides access to the entire contents of this string.
public AttributedCharacterIterator getIterator (Attribute attributes)
  Creates an AttributedCharacterIterator instance that provides access to selected contents of this string.
public AttributedCharacterIterator getIterator (Attribute attributes, int beginIndex, int endIndex)
  Creates an AttributedCharacterIterator instance that provides access to selected contents of this string.
pack-private int length ()
Fields
Hide/Show inherited fields
pack-private int runArraySize
pack-private Vector runAttributes
pack-private Vector runAttributeValues
pack-private int runCount
pack-private int runStarts
pack-private String text
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar