de.enough.polish.ui.texteffects
Class VerticalSplitTextEffect
java.lang.Object
de.enough.polish.ui.TextEffect
de.enough.polish.ui.texteffects.VerticalSplitTextEffect
- All Implemented Interfaces:
- Serializable
public class VerticalSplitTextEffect
- extends TextEffect
Paints the text in two colors that are split vertically.
Copyright Enough Software 2008
- Author:
- Robert Virkus, j2mepolish@enough.de
|
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 |
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, releaseResources, showNotify, stringWidth, wrap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerticalSplitTextEffect
public VerticalSplitTextEffect()
- Creates a new split text effect
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.
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 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 context