Uses of Class
java.text.AttributedCharacterIterator.Attribute
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes and interface relating to fonts.
Provides classes and interfaces for the input method framework.
Provides classes and interfaces for handling text, dates, numbers,
and messages in a manner independent of natural languages.
-
Uses of AttributedCharacterIterator.Attribute in java.awt
Modifier and TypeMethodDescriptionFont.getAvailableAttributes()
Returns the keys of all the attributes supported by thisFont
.Modifier and TypeMethodDescriptionFont.deriveFont
(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes) Creates a newFont
object by replicating the currentFont
object and applying a new set of font attributes to it.static Font
Font.getFont
(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes) Returns aFont
appropriate to the attributes.ModifierConstructorDescriptionFont
(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes) Creates a newFont
with the specified attributes. -
Uses of AttributedCharacterIterator.Attribute in java.awt.font
Modifier and TypeClassDescriptionfinal class
TheTextAttribute
class defines attribute keys and attribute values used for text rendering.ModifierConstructorDescriptionTextLayout
(String string, Map<? extends AttributedCharacterIterator.Attribute, ?> attributes, FontRenderContext frc) Constructs aTextLayout
from aString
and an attribute set. -
Uses of AttributedCharacterIterator.Attribute in java.awt.im
Modifier and TypeMethodDescriptionInputMethodRequests.cancelLatestCommittedText
(AttributedCharacterIterator.Attribute[] attributes) Gets the latest committed text from the text editing component and removes it from the component's text body.InputMethodRequests.getCommittedText
(int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes) Gets an iterator providing access to the entire text and attributes contained in the text editing component except for uncommitted text.InputMethodRequests.getSelectedText
(AttributedCharacterIterator.Attribute[] attributes) Gets the currently selected text from the text editing component. -
Uses of AttributedCharacterIterator.Attribute in java.text
Modifier and TypeClassDescriptionstatic class
Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromDateFormat.formatToCharacterIterator
and as field identifiers inFieldPosition
.static class
Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromFormat.formatToCharacterIterator
and as field identifiers inFieldPosition
.static class
Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromMessageFormat.formatToCharacterIterator
.static class
Defines constants that are used as attribute keys in theAttributedCharacterIterator
returned fromNumberFormat.formatToCharacterIterator
and as field identifiers inFieldPosition
.Modifier and TypeFieldDescriptionstatic final AttributedCharacterIterator.Attribute
AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT
Attribute key for input method segments.static final AttributedCharacterIterator.Attribute
AttributedCharacterIterator.Attribute.LANGUAGE
Attribute key for the language of some text.static final AttributedCharacterIterator.Attribute
AttributedCharacterIterator.Attribute.READING
Attribute key for the reading of some text.Modifier and TypeMethodDescriptionAttributedCharacterIterator.getAllAttributeKeys()
Returns the keys of all attributes defined on the iterator's text range.AttributedCharacterIterator.getAttributes()
Returns a map with the attributes defined on the current character.Modifier and TypeMethodDescriptionvoid
AttributedString.addAttribute
(AttributedCharacterIterator.Attribute attribute, Object value) Adds an attribute to the entire string.void
AttributedString.addAttribute
(AttributedCharacterIterator.Attribute attribute, Object value, int beginIndex, int endIndex) Adds an attribute to a subrange of the string.AttributedCharacterIterator.getAttribute
(AttributedCharacterIterator.Attribute attribute) Returns the value of the namedattribute
for the current character.AttributedString.getIterator
(AttributedCharacterIterator.Attribute[] attributes) Creates an AttributedCharacterIterator instance that provides access to selected contents of this string.AttributedString.getIterator
(AttributedCharacterIterator.Attribute[] attributes, int beginIndex, int endIndex) Creates an AttributedCharacterIterator instance that provides access to selected contents of this string.int
AttributedCharacterIterator.getRunLimit
(AttributedCharacterIterator.Attribute attribute) Returns the index of the first character following the run with respect to the givenattribute
containing the current character.int
AttributedCharacterIterator.getRunStart
(AttributedCharacterIterator.Attribute attribute) Returns the index of the first character of the run with respect to the givenattribute
containing the current character.Modifier and TypeMethodDescriptionvoid
AttributedString.addAttributes
(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes, int beginIndex, int endIndex) Adds a set of attributes to a subrange of the string.int
AttributedCharacterIterator.getRunLimit
(Set<? extends AttributedCharacterIterator.Attribute> attributes) Returns the index of the first character following the run with respect to the givenattributes
containing the current character.int
AttributedCharacterIterator.getRunStart
(Set<? extends AttributedCharacterIterator.Attribute> attributes) Returns the index of the first character of the run with respect to the givenattributes
containing the current character.ModifierConstructorDescriptionAttributedString
(AttributedCharacterIterator text, int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes) Constructs an AttributedString instance with the subrange of the given attributed text represented by AttributedCharacterIterator.ModifierConstructorDescriptionAttributedString
(String text, Map<? extends AttributedCharacterIterator.Attribute, ?> attributes) Constructs an AttributedString instance with the given text and attributes.