public final class GlyphRenderer extends AbstractTextRenderer
cachedGlyphShapes, cachedGlyphVector, cachedTextAscent, cachedTextHeight, cachedTextWidth, capitalMAscent| Constructor and Description |
|---|
GlyphRenderer(java.lang.String text,
AnimationFunction<java.lang.Float> scaleFunction,
AnimationFunction<java.lang.Float> translateFunction,
AnimationFunction<java.awt.Color> colorFunction,
long glyphDelay)
Constructs a
GlyphRenderer that paints
individual glyphs with different transforms. |
| Modifier and Type | Method and Description |
|---|---|
long |
getTime() |
void |
render(java.awt.Graphics2D g2,
int width,
int height)
Renders the text.
|
void |
setTime(long time) |
ensureValidCache, getAdjustedAscent, getAdjustedDescent, getColor, getFont, getHeightMode, getText, invalidateCache, isCacheValid, setCacheValid, setColor, setFont, setHeightMode, setText, validateCachepublic GlyphRenderer(java.lang.String text,
AnimationFunction<java.lang.Float> scaleFunction,
AnimationFunction<java.lang.Float> translateFunction,
AnimationFunction<java.awt.Color> colorFunction,
long glyphDelay)
GlyphRenderer that paints
individual glyphs with different transforms.text - the initial textscaleFunction - maps times to glyph scalestranslateFunction - maps times to glyph translationscolorFunction - maps times to colorsglyphDelay - a time delay between the glyph animationspublic long getTime()
public void setTime(long time)
public void render(java.awt.Graphics2D g2,
int width,
int height)
g2 - the graphics object to render onwidth - the width of the graphics areaheight - the height of the graphics areaCopyright © 2001-2011 JGoodies Karsten Lentzsch. All Rights Reserved.