|
||||||||||
| 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.FadeTextEffect
public class FadeTextEffect
This is a simple fade in/out effect.
Activate the fade text effect by specifying text-effect: fade; in your polish.css file.
You can finetune the effect with following attributes:
Copyright Enough Software 2006 - 2009
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.TextEffect |
|---|
isTextSensitive, style |
| Constructor Summary | |
|---|---|
FadeTextEffect()
Creates a new FadeTextEffect |
|
| Method Summary | |
|---|---|
boolean |
animate()
Animates this effect. |
void |
drawString(String text,
int textColor,
int x,
int y,
int orientation,
Graphics g)
Paints the text and applies the text effect. |
void |
setStyle(Style style,
boolean resetStyle)
Sets the style of this item without assuming defaults for non-set style elements. |
| Methods inherited from class de.enough.polish.ui.TextEffect |
|---|
animate, charWidth, drawChar, drawStrings, drawStrings, drawStrings, getFont, getFontHeight, getLeftX, getMaxWidth, getRgbData, getRgbData, getRgbData, getTopY, getTopY, hideNotify, onAttach, onDetach, releaseResources, setStyle, showNotify, stringWidth, wrap, wrap, wrap, wrap, wrap, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FadeTextEffect()
| Method Detail |
|---|
public void drawString(String text,
int textColor,
int x,
int y,
int orientation,
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 boolean animate()
TextEffect
animate in class TextEffect
public void setStyle(Style style,
boolean resetStyle)
TextEffect
setStyle in class TextEffectstyle - the new style for this item.resetStyle - true when all style elements should be reset to their default when no CSS attributes are defined.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||