| 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.
|
| Modifier and Type | Method and Description |
|---|---|
FontRenderContext |
FontMetrics.getFontRenderContext()
Gets the
FontRenderContext used by this
FontMetrics object to measure text.
|
abstract FontRenderContext |
Graphics2D.getFontRenderContext()
Get the rendering context of the
Font within this
Graphics2D context.
|
| Modifier and Type | Method and Description |
|---|---|
GlyphVector |
Font.createGlyphVector(FontRenderContext
Creates a
GlyphVector by mapping characters to glyphs one-to-one based on the Unicode cmap in this
Font.
|
GlyphVector |
Font.createGlyphVector(FontRenderContext
Creates a
GlyphVector by mapping the specified characters to glyphs one-to-one based on the Unicode cmap in this
Font.
|
GlyphVector |
Font.createGlyphVector(FontRenderContext
Creates a
GlyphVector by mapping characters to glyphs one-to-one based on the Unicode cmap in this
Font.
|
GlyphVector |
Font.createGlyphVector(FontRenderContext
Creates a
GlyphVector by mapping characters to glyphs one-to-one based on the Unicode cmap in this
Font.
|
LineMetrics |
Font.getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext
Returns a
LineMetrics object created with the specified arguments.
|
LineMetrics |
Font.getLineMetrics(CharacterIterator
Returns a
LineMetrics object created with the specified arguments.
|
LineMetrics |
Font.getLineMetrics(String
|
LineMetrics |
Font.getLineMetrics(String
Returns a
LineMetrics object created with the specified arguments.
|
Rectangle2D |
Font.getMaxCharBounds(FontRenderContext
Returns the bounds for the character with the maximum bounds as defined in the specified
FontRenderContext.
|
Rectangle2D |
Font.getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext
Returns the logical bounds of the specified array of characters in the specified
FontRenderContext.
|
Rectangle2D |
Font.getStringBounds(CharacterIterator
Returns the logical bounds of the characters indexed in the specified
CharacterIterator in the specified
FontRenderContext.
|
Rectangle2D |
Font.getStringBounds(String
Returns the logical bounds of the specified
String in the specified
FontRenderContext.
|
Rectangle2D |
Font.getStringBounds(String
Returns the logical bounds of the specified
String in the specified
FontRenderContext.
|
GlyphVector |
Font.layoutGlyphVector(FontRenderContext
Returns a new
GlyphVector object, performing full layout of the text if possible.
|
| Modifier and Type | Method and Description |
|---|---|
abstract FontRenderContext |
GlyphVector.getFontRenderContext()
Returns the
FontRenderContext associated with this
GlyphVector.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FontRenderContext.equals(FontRenderContext
Return true if rhs has the same transform, antialiasing, and fractional metrics values as this.
|
Rectangle |
GlyphVector.getGlyphPixelBounds(int index, FontRenderContext
Returns the pixel bounds of the glyph at index when this
GlyphVector is rendered in a
Graphics with the given
FontRenderContext at the given location.
|
Rectangle |
TextLayout.getPixelBounds(FontRenderContext
Returns the pixel bounds of this
TextLayout when rendered in a graphics with the given
FontRenderContext at the given location.
|
Rectangle |
GlyphVector.getPixelBounds(FontRenderContext
Returns the pixel bounds of this
GlyphVector when rendered in a graphics with the given
FontRenderContext at the given location.
|
| Constructor and Description | |
|---|---|
LineBreakMeasurer(AttributedCharacterIterator
Constructs a
LineBreakMeasurer for the specified text.
|
|
LineBreakMeasurer(AttributedCharacterIterator
Constructs a
LineBreakMeasurer for the specified text.
|
|
TextLayout(AttributedCharacterIterator
Constructs a
TextLayout from an iterator over styled text.
|
|
TextLayout(String
|
|
TextLayout(String
Constructs a
TextLayout from a
String and an attribute set.
|
|
TextMeasurer(AttributedCharacterIterator
Constructs a
TextMeasurer from the source text.
|