|
||||||||||
| 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.FlashTextEffect
public class FlashTextEffect
Flashes a text constantly. Please use sparingly as this might be quite distracting.
Usage sample:
title {
font-color: red;
text-effect: flash;
text-flash-interval: 800; // interval in ms
}
Copyright Enough Software 2007 - 2008
history
Oct 28, 2007 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.TextEffect |
|---|
style |
| Constructor Summary | |
|---|---|
FlashTextEffect()
Creates a new text effect. |
|
| 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 |
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, releaseResources, showNotify, stringWidth, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlashTextEffect()
| Method Detail |
|---|
public boolean animate()
TextEffect
animate in class TextEffect
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||