| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.font |
Provides classes and interface relating to fonts.
|
| java.awt.im |
Provides classes and interfaces for the input method framework.
|
| java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
|
| Modifier and Type | Method and Description |
|---|---|
AttributedCharacterIterator |
Font.getAvailableAttributes()
Returns the keys of all the attributes supported by this
Font.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
Font.deriveFont(Map
Creates a new
Font object by replicating the current
Font object and applying a new set of font attributes to it.
|
static Font |
Font.getFont(Map
Returns a
Font appropriate to the attributes.
|
| Constructor and Description | |
|---|---|
Font(Map
Creates a new
Font with the specified attributes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TextAttribute
The
TextAttribute class defines attribute keys and attribute values used for text rendering.
|
| Constructor and Description | |
|---|---|
TextLayout(String
Constructs a
TextLayout from a
String and an attribute set.
|
| Modifier and Type | Method and Description |
|---|---|
AttributedCharacterIterator |
InputMethodRequests.cancelLatestCommittedText(AttributedCharacterIterator
Gets the latest committed text from the text editing component and removes it from the component's text body.
|
AttributedCharacterIterator |
InputMethodRequests.getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator
Gets an iterator providing access to the entire text and attributes contained in the text editing component except for uncommitted text.
|
AttributedCharacterIterator |
InputMethodRequests.getSelectedText(AttributedCharacterIterator
Gets the currently selected text from the text editing component.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
DateFormat
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned from
DateFormat.formatToCharacterIterator and as field identifiers in
FieldPosition.
|
static class |
Format
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned from
Format.formatToCharacterIterator and as field identifiers in
FieldPosition.
|
static class |
MessageFormat
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned from
MessageFormat.formatToCharacterIterator.
|
static class |
NumberFormat
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned from
NumberFormat.formatToCharacterIterator and as field identifiers in
FieldPosition.
|
| Modifier and Type | Field and Description |
|---|---|
static AttributedCharacterIterator |
AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT
Attribute key for input method segments.
|
static AttributedCharacterIterator |
AttributedCharacterIterator.Attribute.LANGUAGE
Attribute key for the language of some text.
|
static AttributedCharacterIterator |
AttributedCharacterIterator.Attribute.READING
Attribute key for the reading of some text.
|
| Modifier and Type | Method and Description |
|---|---|
Set |
AttributedCharacterIterator.getAllAttributeKeys()
Returns the keys of all attributes defined on the iterator's text range.
|
Map |
AttributedCharacterIterator.getAttributes()
Returns a map with the attributes defined on the current character.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AttributedString.addAttribute(AttributedCharacterIterator
Adds an attribute to the entire string.
|
void |
AttributedString.addAttribute(AttributedCharacterIterator
Adds an attribute to a subrange of the string.
|
Object |
AttributedCharacterIterator.getAttribute(AttributedCharacterIterator
Returns the value of the named
attribute for the current character.
|
AttributedCharacterIterator |
AttributedString.getIterator(AttributedCharacterIterator
Creates an AttributedCharacterIterator instance that provides access to selected contents of this string.
|
AttributedCharacterIterator |
AttributedString.getIterator(AttributedCharacterIterator
Creates an AttributedCharacterIterator instance that provides access to selected contents of this string.
|
int |
AttributedCharacterIterator.getRunLimit(AttributedCharacterIterator
Returns the index of the first character following the run with respect to the given
attribute containing the current character.
|
int |
AttributedCharacterIterator.getRunStart(AttributedCharacterIterator
Returns the index of the first character of the run with respect to the given
attribute containing the current character.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AttributedString.addAttributes(Map
Adds a set of attributes to a subrange of the string.
|
int |
AttributedCharacterIterator.getRunLimit(Set
Returns the index of the first character following the run with respect to the given
attributes containing the current character.
|
int |
AttributedCharacterIterator.getRunStart(Set
Returns the index of the first character of the run with respect to the given
attributes containing the current character.
|
| Constructor and Description | |
|---|---|
AttributedString(AttributedCharacterIterator
Constructs an AttributedString instance with the subrange of the given attributed text represented by AttributedCharacterIterator.
|
| Constructor and Description | |
|---|---|
AttributedString(String
Constructs an AttributedString instance with the given text and attributes.
|