Logo Search packages:      
Sourcecode: libjgoodies-animation-java version File versions  Download package

com::jgoodies::animation::renderer::BasicTextRenderer Class Reference

Inheritance diagram for com::jgoodies::animation::renderer::BasicTextRenderer:

com::jgoodies::animation::renderer::AbstractTextRenderer com::jgoodies::animation::AnimationRenderer

List of all members.


Detailed Description

Renders a text with modifiable scaling, color, glyph spacing and position.

Author:
Karsten Lentzsch
Version:
Revision
1.1

Definition at line 42 of file BasicTextRenderer.java.


Public Member Functions

 BasicTextRenderer (String text)
Color getColor ()
Font getFont ()
HeightMode getHeightMode ()
float getOffsetX ()
float getOffsetY ()
float getScaleX ()
float getScaleY ()
float getSpace ()
String getText ()
void render (Graphics2D g2, int width, int height)
void setColor (Color color)
void setFont (Font newFont)
void setHeightMode (HeightMode heightMode)
void setOffsetX (float offsetX)
void setOffsetY (float offsetY)
void setScaleX (float scaleX)
void setScaleY (float scaleY)
void setSpace (float space)
void setText (String newText)

Protected Member Functions

void ensureValidCache (Graphics2D g2)
float getAdjustedAscent ()
float getAdjustedDescent ()
void invalidateCache ()
boolean isCacheValid ()
void setCacheValid (boolean b)
void validateCache (Graphics2D g2)

Protected Attributes

Shape[] cachedGlyphShapes
GlyphVector cachedGlyphVector
float cachedTextAscent
float cachedTextHeight
float cachedTextWidth
float capitalMAscent = -1f

Private Attributes

float offsetX = 0.0f
float offsetY = 0.0f
float scaleX = 1.0f
float scaleY = 1.0f
float space = 0.0f

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index