Package | Description |
---|---|
java.text |
Modifier and Type | Class and Description |
---|---|
static class |
DateFormat.Field
The instances of this inner class are used as attribute keys and values
in
AttributedCharacterIterator that the
Format.formatToCharacterIterator(Object) method returns. |
static class |
Format.Field
Inner class used to represent
Format attributes in the
AttributedCharacterIterator that the
formatToCharacterIterator() method returns in Format
subclasses. |
Modifier and Type | Field and Description |
---|---|
static AttributedCharacterIterator.Attribute |
AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT |
static AttributedCharacterIterator.Attribute |
AttributedCharacterIterator.Attribute.LANGUAGE |
static AttributedCharacterIterator.Attribute |
AttributedCharacterIterator.Attribute.READING |
Modifier and Type | Method and Description |
---|---|
void |
AttributedString.addAttribute(AttributedCharacterIterator.Attribute attribute,
Object value)
Applies a given attribute to this string.
|
void |
AttributedString.addAttribute(AttributedCharacterIterator.Attribute attribute,
Object value,
int start,
int end)
Applies a given attribute to the given range of this string.
|
Object |
AttributedCharacterIterator.getAttribute(AttributedCharacterIterator.Attribute attri) |
AttributedCharacterIterator |
AttributedString.getIterator(AttributedCharacterIterator.Attribute[] attributes)
Returns an
AttributedCharacterIterator that gives access to the
complete content of this attributed string. |
AttributedCharacterIterator |
AttributedString.getIterator(AttributedCharacterIterator.Attribute[] attributes,
int start,
int end)
Returns an
AttributedCharacterIterator that gives access to the
contents of this attributed string starting at index start up to
index end . |
int |
AttributedCharacterIterator.getRunLimit(AttributedCharacterIterator.Attribute attri) |
int |
AttributedCharacterIterator.getRunStart(AttributedCharacterIterator.Attribute attri) |
Constructor and Description |
---|
AttributedString(AttributedCharacterIterator iterator,
int start,
int end,
AttributedCharacterIterator.Attribute[] attributes)
Constructs an
AttributedString from a range of the text contained
in the specified AttributedCharacterIterator , starting at start , ending at end and it will copy the attributes defined in
the specified set. |