public class TextActor extends Actor
| Constructor and Description | 
|---|
TextActor(boolean isRotatable,
         java.lang.String text,
         int textColor,
         int bgColor,
         int size)
Constructs a possibly rotatable text actor that displays the given text with given text
 and background colors and give size For transparent background use argb color with alpha = 0
 (Color.TRANSPARENT). 
 | 
TextActor(boolean isRotatable,
         java.lang.String text,
         int textColor,
         int bgColor,
         int size,
         android.graphics.Typeface typeface)
Constructs a possibly rotatable text actor that displays the given text with given text,
 background colors, size and typeface. 
 | 
TextActor(java.lang.String text)
Constructs a unrotatable text actor that displays the given text. 
 | 
TextActor(java.lang.String text,
         int textColor,
         int bgColor,
         int size)
Constructs a unrotatable text actor that displays the given text with given text
 and background colors. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getTextHeight()
Returns the height of the text. 
 | 
int | 
getTextWidth()
Returns the total width of the text. 
 | 
act, addActorCollisionListener, addActorTouchListener, addActorTouchListener, addBorderListener, addCollisionActor, addCollisionActors, addCollisionTile, addCollisionTiles, addTileCollisionListener, collide, collide, containsPixel, delay, displace, getBackground, getCollisionActors, getCollisionActorsInRange, getCollisionTiles, getCurrentImage, getDirection, getDirectionStart, getDisplacePosition, getHeight, getIdVisible, getImage, getImage, getIntDirection, getLocation, getLocationOffset, getLocationStart, getNbCycles, getNbHorzCells, getNbSprites, getNbVertCells, getNeighbours, getNeighbours, getNextMoveLocation, getPixelColor, getPixelLocation, getRotatedImage, getRotatedPosition, getRotationIndex, getScaledImage, getScaledImage, getScaledImage, getSlowDown, getWidth, getX, getXStart, getY, getYStart, getZoomedImage, hide, isActEnabled, isActorCollisionEnabled, isHorzMirror, isInGrid, isMoveValid, isNearBorder, isRemoved, isRotatable, isTileCollisionEnabled, isVertMirror, isVisible, move, move, nearBorder, removeSelf, reset, rotate, rotate, setActEnabled, setActorCollisionEnabled, setActorTouchCircle, setActorTouchCircle, setActorTouchEnabled, setActorTouchImage, setActorTouchImage, setActorTouchRectangle, setActorTouchRectangle, setCollisionCircle, setCollisionCircle, setCollisionImage, setCollisionImage, setCollisionLine, setCollisionLine, setCollisionRectangle, setCollisionRectangle, setCollisionSpot, setCollisionSpot, setDirection, setDirection, setDisplacePosition, setHorzMirror, setLocation, setLocationOffset, setLocationOffset, setOnBottom, setOnTop, setPixelLocation, setSlowDown, setTileCollisionEnabled, setVertMirror, setX, setY, show, show, showNextSprite, showPreviousSprite, turnpublic TextActor(boolean isRotatable,
         java.lang.String text,
         int textColor,
         int bgColor,
         int size,
         android.graphics.Typeface typeface)
isRotatable - if true, the text changes the direction corresponding
 to the actor's directiontext - the text to display, if null or has length 0,
 the text actor is completely transparenttextColor - the color of the textbgColor - the background color of the text fieldsize - the text size in pixelstypeface - one of the constants defined in class Typefacepublic TextActor(boolean isRotatable,
         java.lang.String text,
         int textColor,
         int bgColor,
         int size)
isRotatable - if true, the text changes the direction corresponding
 to the actor's directiontext - the text to display, if null or has length 0,
 the text actor is completely transparenttextColor - the color of the textbgColor - the background color of the text fieldsize - the text size in pixelspublic TextActor(java.lang.String text,
         int textColor,
         int bgColor,
         int size)
text - the text to display, if null or has length 0,
 the text actor is completely transparenttextColor - the color of the textbgColor - the background color of the text fieldsize - the text size in pixelspublic TextActor(java.lang.String text)
text - the text to display, if null or has length 0,
 the text actor is completely transparentpublic int getTextWidth()
Actor.setLocationOffset(Point pt)public int getTextHeight()
Actor.setLocationOffset(Point pt)