|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.TextEffect
de.enough.polish.ui.texteffects.AlienGlowTextEffect
public class AlienGlowTextEffect
Paints an alien glow text effect, whereas you are able to specify the inner and outer color as well as the font-color.
Activate the alien glow text effect by specifying text-effect: 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
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.TextEffect |
|---|
style |
| Constructor Summary | |
|---|---|
AlienGlowTextEffect()
|
|
| Method Summary | |
|---|---|
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, 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 |
|---|
public AlienGlowTextEffect()
| Method Detail |
|---|
public void drawString(java.lang.String text,
int textColor,
int x,
int y,
int orientation,
javax.microedition.lcdui.Graphics g)
TextEffect
drawString in class TextEffecttext - the texttextColor - the color of the textx - x coordinatey - y coordinateorientation - the orientation, e.g. Graphics.TOP | Graphics.LEFT or Graphics.TOP | Graphics.HCENTERg - the graphics contextpublic void setStyle(Style style)
TextEffect
setStyle in class TextEffectstyle - the new style for this item.public void releaseResources()
TextEffect
releaseResources in class TextEffect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||