|
||||||||||
| 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.RotateTextEffect
public class RotateTextEffect
Rotates the given text. Please note that this MIDP 2.0 only effect assumes that only one line is rendered - rendering several lines decreases performance drastically.
Activate this text effect by specifying text-effect: rotate; in your polish.css file.
You can finetune the effect with following attributes:
Copyright Enough Software 2006 - 2008
history
Nov 29, 2006 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.TextEffect |
|---|
style |
| Constructor Summary | |
|---|---|
RotateTextEffect()
|
|
| 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. |
static RgbImage |
rotate(java.lang.String text,
int textColor,
javax.microedition.lcdui.Font font,
int angle)
Rotates the given text. |
void |
setAngle(int angle)
Sets the angle for this 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, showNotify, stringWidth, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RotateTextEffect()
| 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 context
public static RgbImage rotate(java.lang.String text,
int textColor,
javax.microedition.lcdui.Font font,
int angle)
//#if polish.midp2 && polish.hasFloatingPoint
text - the texttextColor - the color of the textfont - the fontangle - the angle in degrees between 0 and 360
public void releaseResources()
TextEffect
releaseResources in class TextEffectpublic void setAngle(int angle)
angle - the angle between 0 and 360 degreespublic 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 | |||||||||