| java.lang.Object com.jgoodies.animation.renderer.AbstractTextRenderer com.jgoodies.animation.renderer.GlyphRenderer
GlyphRenderer | final public class GlyphRenderer extends AbstractTextRenderer (Code) | | Renders the glyphs of a string with individual scaling, transform, and color.
author: Karsten Lentzsch version: $Revision: 1.1 $ |
GlyphRenderer | public GlyphRenderer(String text, AnimationFunction scaleFunction, AnimationFunction translateFunction, AnimationFunction colorFunction, long glyphDelay)(Code) | | Constructs a GlyphRenderer that paints
individual glyphs with different transforms.
Parameters: text - the initial text Parameters: scaleFunction - maps times to glyph scales Parameters: translateFunction - maps times to glyph translations Parameters: colorFunction - maps times to colors Parameters: glyphDelay - a time delay between the glyph animations |
getTime | public long getTime()(Code) | | |
render | public void render(Graphics2D g2, int width, int height)(Code) | | Renders the text. Firstly, ensures a valid cache,
then sets the color, and finally paints the cached glyph shaped,
using individual transforms.
Parameters: g2 - the graphics object to render on Parameters: width - the width of the graphics area Parameters: height - the height of the graphics area |
setTime | public void setTime(long time)(Code) | | |
|
|