| java.lang.Object com.jgoodies.animation.renderer.AbstractTextRenderer com.jgoodies.animation.renderer.BasicTextRenderer
BasicTextRenderer | final public class BasicTextRenderer extends AbstractTextRenderer (Code) | | Renders a text with modifiable scaling, color, glyph spacing and position.
author: Karsten Lentzsch version: $Revision: 1.1 $ |
Constructor Summary | |
public | BasicTextRenderer(String text) Constructs a renderer for a text that can be scaled, moved, and
change inter-glyph space. |
BasicTextRenderer | public BasicTextRenderer(String text)(Code) | | Constructs a renderer for a text that can be scaled, moved, and
change inter-glyph space.
Parameters: text - the text to be displayed |
getOffsetX | public float getOffsetX()(Code) | | |
getOffsetY | public float getOffsetY()(Code) | | |
getScaleX | public float getScaleX()(Code) | | |
getScaleY | public float getScaleY()(Code) | | |
getSpace | public float getSpace()(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 shapes.
Parameters: g2 - the graphics context to render on Parameters: width - the width of the drawing surface Parameters: height - the height of the drawing surface |
setOffsetX | public void setOffsetX(float offsetX)(Code) | | |
setOffsetY | public void setOffsetY(float offsetY)(Code) | | |
setScaleX | public void setScaleX(float scaleX)(Code) | | |
setScaleY | public void setScaleY(float scaleY)(Code) | | |
setSpace | public void setSpace(float space)(Code) | | |
|
|