Uses of Class
java.awt.font.FontRenderContext
| 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.
|
-
Uses of FontRenderContext in java.awt
Methods in java.awt that return FontRenderContext Modifier and Type Method Description FontRenderContextFontMetrics. getFontRenderContext()Gets theFontRenderContextused by thisFontMetricsobject to measure text.abstract FontRenderContextGraphics2D. getFontRenderContext()Get the rendering context of theFontwithin thisGraphics2Dcontext.Methods in java.awt with parameters of type FontRenderContext Modifier and Type Method Description GlyphVectorFont. createGlyphVector(FontRenderContext frc, char[] chars)Creates aGlyphVectorby mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont.GlyphVectorFont. createGlyphVector(FontRenderContext frc, int[] glyphCodes)Creates aGlyphVectorby mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont.GlyphVectorFont. createGlyphVector(FontRenderContext frc, String str)Creates aGlyphVectorby mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont.GlyphVectorFont. createGlyphVector(FontRenderContext frc, CharacterIterator ci)Creates aGlyphVectorby mapping the specified characters to glyphs one-to-one based on the Unicode cmap in thisFont.LineMetricsFont. getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc)Returns aLineMetricsobject created with the specified arguments.LineMetricsFont. getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc)Returns aLineMetricsobject created with the specified arguments.LineMetricsFont. getLineMetrics(String str, FontRenderContext frc)LineMetricsFont. getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)Returns aLineMetricsobject created with the specified arguments.Rectangle2DFont. getMaxCharBounds(FontRenderContext frc)Returns the bounds for the character with the maximum bounds as defined in the specifiedFontRenderContext.Rectangle2DFont. getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)Returns the logical bounds of the specified array of characters in the specifiedFontRenderContext.Rectangle2DFont. getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)Returns the logical bounds of the specifiedStringin the specifiedFontRenderContext.Rectangle2DFont. getStringBounds(String str, FontRenderContext frc)Returns the logical bounds of the specifiedStringin the specifiedFontRenderContext.Rectangle2DFont. getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)Returns the logical bounds of the characters indexed in the specifiedCharacterIteratorin the specifiedFontRenderContext.GlyphVectorFont. layoutGlyphVector(FontRenderContext frc, char[] text, int start, int limit, int flags)Returns a newGlyphVectorobject, performing full layout of the text if possible. -
Uses of FontRenderContext in java.awt.font
Methods in java.awt.font that return FontRenderContext Modifier and Type Method Description abstract FontRenderContextGlyphVector. getFontRenderContext()Returns theFontRenderContextassociated with thisGlyphVector.Methods in java.awt.font with parameters of type FontRenderContext Modifier and Type Method Description booleanFontRenderContext. equals(FontRenderContext rhs)Return true if rhs has the same transform, antialiasing, and fractional metrics values as this.RectangleGlyphVector. getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)Returns the pixel bounds of the glyph at index when thisGlyphVectoris rendered in aGraphicswith the givenFontRenderContextat the given location.RectangleGlyphVector. getPixelBounds(FontRenderContext renderFRC, float x, float y)Returns the pixel bounds of thisGlyphVectorwhen rendered in a graphics with the givenFontRenderContextat the given location.RectangleTextLayout. getPixelBounds(FontRenderContext frc, float x, float y)Returns the pixel bounds of thisTextLayoutwhen rendered in a graphics with the givenFontRenderContextat the given location.Constructors in java.awt.font with parameters of type FontRenderContext Constructor Description LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc)Constructs aLineBreakMeasurerfor the specified text.LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc)Constructs aLineBreakMeasurerfor the specified text.TextLayout(String string, Font font, FontRenderContext frc)TextLayout(String string, Map<? extends AttributedCharacterIterator.Attribute,?> attributes, FontRenderContext frc)Constructs aTextLayoutfrom aStringand an attribute set.TextLayout(AttributedCharacterIterator text, FontRenderContext frc)Constructs aTextLayoutfrom an iterator over styled text.TextMeasurer(AttributedCharacterIterator text, FontRenderContext frc)Constructs aTextMeasurerfrom the source text.