| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.text | Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | Font. canDisplayUpTo(CharacterIterator iter,
              int start,
              int limit)Indicates whether or not this  Fontcan display the
 text specified by theiterstarting atstartand ending atlimit. | 
| GlyphVector | Font. createGlyphVector(FontRenderContext frc,
                 CharacterIterator ci)Creates a  GlyphVectorby
 mapping the specified characters to glyphs one-to-one based on the
 Unicode cmap in thisFont. | 
| LineMetrics | Font. getLineMetrics(CharacterIterator ci,
              int beginIndex,
              int limit,
              FontRenderContext frc)Returns a  LineMetricsobject created with the
 specified arguments. | 
| LineMetrics | FontMetrics. getLineMetrics(CharacterIterator ci,
              int beginIndex,
              int limit,
              Graphics context)Returns the  LineMetricsobject for the specifiedCharacterIteratorin the specifiedGraphicscontext. | 
| Rectangle2D | Font. getStringBounds(CharacterIterator ci,
               int beginIndex,
               int limit,
               FontRenderContext frc)Returns the logical bounds of the characters indexed in the
 specified  CharacterIteratorin the
 specifiedFontRenderContext. | 
| Rectangle2D | FontMetrics. getStringBounds(CharacterIterator ci,
               int beginIndex,
               int limit,
               Graphics context)Returns the bounds of the characters indexed in the specified
  CharacterIteratorin the
 specifiedGraphicscontext. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | AttributedCharacterIteratorAn  AttributedCharacterIteratorallows iteration through both text and
 related attribute information. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | StringCharacterIteratorStringCharacterIteratorimplements theCharacterIteratorprotocol for aString. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract CharacterIterator | BreakIterator. getText()Get the text being scanned | 
| Modifier and Type | Method and Description | 
|---|---|
| CollationElementIterator | RuleBasedCollator. getCollationElementIterator(CharacterIterator source)Returns a CollationElementIterator for the given CharacterIterator. | 
| void | CollationElementIterator. setText(CharacterIterator source)Set a new string over which to iterate. | 
| abstract void | BreakIterator. setText(CharacterIterator newText)Set a new text for scanning. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SegmentA segment of a character array representing a fragment
 of text. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2016, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.