public class ToolBarText extends ToolBarItem
Constructor and Description |
---|
ToolBarText(java.lang.String text,
int height,
double textSize)
Creates a tool bar text item displaying the given text in black
centered in a white rectangle with given height.
|
ToolBarText(java.lang.String text,
int textColor,
int bgColor,
int height,
double textSize,
android.graphics.Typeface typeface)
Constructs a tool bar text item that displays the given text
with given text and background colors.
|
getFilename, getNumberOfSprites
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, turn
public ToolBarText(java.lang.String text, int height, double textSize)
text
- the text to displayheight
- the virtual height of the background rectangletextSize
- the text size in fraction of heightpublic ToolBarText(java.lang.String text, int textColor, int bgColor, int height, double textSize, android.graphics.Typeface typeface)
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 fieldheight
- the height of the background rectangletextSize
- the text size in fraction of heighttypeface
- one of the constants defined in class Typeface