public static class TextRenderer.DefaultRenderDelegate extends java.lang.Object implements TextRenderer.RenderDelegate
| Constructor and Description |
|---|
DefaultRenderDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D graphics,
java.lang.String str,
int x,
int y)
Render the passed character sequence at the designated location using the supplied Graphics2D instance.
|
void |
drawGlyphVector(java.awt.Graphics2D graphics,
java.awt.font.GlyphVector str,
int x,
int y)
Render the passed GlyphVector at the designated location using the supplied Graphics2D instance.
|
java.awt.geom.Rectangle2D |
getBounds(java.lang.CharSequence str,
java.awt.Font font,
java.awt.font.FontRenderContext frc)
Computes the bounds of the given character sequence relative to the origin.
|
java.awt.geom.Rectangle2D |
getBounds(java.awt.font.GlyphVector gv,
java.awt.font.FontRenderContext frc)
Computes the bounds of the given GlyphVector, already assumed to have been created for a particular Font,
relative to the origin.
|
java.awt.geom.Rectangle2D |
getBounds(java.lang.String str,
java.awt.Font font,
java.awt.font.FontRenderContext frc)
Computes the bounds of the given String relative to the origin.
|
boolean |
intensityOnly()
Indicates whether the backing store of this TextRenderer should be intensity-only (the default) or
full-color.
|
public void draw(java.awt.Graphics2D graphics,
java.lang.String str,
int x,
int y)
TextRenderer.RenderDelegatedraw in interface TextRenderer.RenderDelegategraphics - the graphics instance.str - the string to draw.x - the x coordinate at which to draw.y - the y coordinate at which to draw.public void drawGlyphVector(java.awt.Graphics2D graphics,
java.awt.font.GlyphVector str,
int x,
int y)
TextRenderer.RenderDelegatedrawGlyphVector in interface TextRenderer.RenderDelegategraphics - the graphics instance.str - the GlyphVector string to draw.x - the x coordinate at which to draw.y - the y coordinate at which to draw.public java.awt.geom.Rectangle2D getBounds(java.lang.CharSequence str,
java.awt.Font font,
java.awt.font.FontRenderContext frc)
TextRenderer.RenderDelegategetBounds in interface TextRenderer.RenderDelegatestr - the string to evaluate.font - the font.frc - the font render context.public java.awt.geom.Rectangle2D getBounds(java.awt.font.GlyphVector gv,
java.awt.font.FontRenderContext frc)
TextRenderer.RenderDelegategetBounds in interface TextRenderer.RenderDelegategv - the glyph vector to evaluate.frc - the font render context.public java.awt.geom.Rectangle2D getBounds(java.lang.String str,
java.awt.Font font,
java.awt.font.FontRenderContext frc)
TextRenderer.RenderDelegategetBounds in interface TextRenderer.RenderDelegatestr - the string to evaluate.font - the font.frc - the font render context.public boolean intensityOnly()
TextRenderer.RenderDelegateintensityOnly in interface TextRenderer.RenderDelegate