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

com::jgoodies::animation::renderer::AbstractTextRenderer Class Reference

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

com::jgoodies::animation::AnimationRenderer com::jgoodies::animation::renderer::BasicTextRenderer com::jgoodies::animation::renderer::GlyphRenderer

List of all members.

Detailed Description

An abstract superclass that helps implementing typographic animation renderers.

Karsten Lentzsch

Definition at line 49 of file AbstractTextRenderer.java.

Public Member Functions

Color getColor ()
Font getFont ()
HeightMode getHeightMode ()
String getText ()
void setColor (Color color)
void setFont (Font newFont)
void setHeightMode (HeightMode heightMode)
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

Package Functions

 AbstractTextRenderer (String text, Font font)
 AbstractTextRenderer (String text)
void render (Graphics2D g2, int width, int height)

Private Member Functions

void ensureCapitalMAscentComputed (FontRenderContext frc)

Static Private Member Functions

static Font createDefaultFont ()

Private Attributes

boolean cacheValid = false
Color color
Font font
HeightMode heightMode = HeightMode.CAPITAL_ASCENT
String text

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

Generated by  Doxygen 1.6.0   Back to index