de.enough.polish.ui.texteffects
Class FadingAlienGlowTextEffect

java.lang.Object
  extended by de.enough.polish.ui.TextEffect
      extended by de.enough.polish.ui.texteffects.FadingAlienGlowTextEffect
All Implemented Interfaces:
Serializable

public class FadingAlienGlowTextEffect
extends TextEffect

Paints an alien glow text effect, whereas you are able to specify the inner and outer color as well as the font-color. This particular version supports also an anminated outer color (look at FadeTextEffect for details).

Activate the alien glow text effect by specifying text-effect: fading-alien-glow; in your polish.css file. You can finetune the effect with following attributes:

Choosing the same inner and outer color and varying the transparency is recommended. Dropshadow just works, if the Text is opaque.

Copyright Enough Software 2006 - 2008

 history
        14-Jul-2006
 

Author:
Simon Schmitt

Field Summary
 
Fields inherited from class de.enough.polish.ui.TextEffect
style
 
Constructor Summary
FadingAlienGlowTextEffect()
          Creates a new FadingAlienGlowTextEffect
 
Method Summary
 boolean animate()
          Animates this effect.
 void drawString(java.lang.String text, int textColor, int x, int y, int orientation, javax.microedition.lcdui.Graphics g)
          Paints the text and applies the text effect.
 void releaseResources()
          Releases any resources this effect might contain.
 void setStyle(Style style)
          Sets the style of this item.
 
Methods inherited from class de.enough.polish.ui.TextEffect
animate, drawStrings, getFont, getFontHeight, getLeftX, getRgbData, getRgbData, getRgbData, getTopY, getTopY, hideNotify, showNotify, stringWidth, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FadingAlienGlowTextEffect

public FadingAlienGlowTextEffect()
Creates a new FadingAlienGlowTextEffect

Method Detail

drawString

public void drawString(java.lang.String text,
                       int textColor,
                       int x,
                       int y,
                       int orientation,
                       javax.microedition.lcdui.Graphics g)
Description copied from class: TextEffect
Paints the text and applies the text effect.

Specified by:
drawString in class TextEffect
Parameters:
text - the text
textColor - the color of the text
x - x coordinate
y - y coordinate
orientation - the orientation, e.g. Graphics.TOP | Graphics.LEFT or Graphics.TOP | Graphics.HCENTER
g - the graphics context

animate

public boolean animate()
Description copied from class: TextEffect
Animates this effect. Subclasses can override this method to create animations.

Overrides:
animate in class TextEffect
Returns:
true when this effect has been animated.

setStyle

public void setStyle(Style style)
Description copied from class: TextEffect
Sets the style of this item. Subclasses can override this method for getting specific settings.

Overrides:
setStyle in class TextEffect
Parameters:
style - the new style for this item.

releaseResources

public void releaseResources()
Description copied from class: TextEffect
Releases any resources this effect might contain. For staying future proof subclasses should call super.releaseResources() first, when overriding this method.

Overrides:
releaseResources in class TextEffect