public class ToolBarText extends ToolBarItem
| Constructor and Description |
|---|
ToolBarText(java.lang.String text,
java.awt.Color textColor,
java.awt.Font font,
java.awt.Color bgColor,
int height)
Creates a tool bar text item displaying the given text with given font and color
centered in a rectangle with given color and height.
|
ToolBarText(java.lang.String text,
int height)
Creates a tool bar text item displaying the given text in black
centered in a white rectangle with given height.
|
getFilename, getNumberOfSpritesact, addActorCollisionListener, addBorderListener, addCollisionActor, addCollisionActors, addCollisionTile, addCollisionTiles, addMouseTouchListener, addMouseTouchListener, addTileCollisionListener, collide, collide, 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, getRotatedPosition, getRotationIndex, getScaledImage, getScaledImage, getScaledImage, getSlowDown, getWidth, getX, getXStart, getY, getYStart, hide, isActEnabled, isActorCollisionEnabled, isHorzMirror, isInGrid, isMoveValid, isNearBorder, isRemoved, isRotatable, isTileCollisionEnabled, isVertMirror, isVisible, move, move, nearBorder, removeSelf, reset, rotate, rotate, setActEnabled, setActorCollisionEnabled, setCollisionCircle, setCollisionCircle, setCollisionImage, setCollisionImage, setCollisionLine, setCollisionLine, setCollisionRectangle, setCollisionRectangle, setCollisionSpot, setCollisionSpot, setDirection, setDirection, setDisplacePosition, setHorzMirror, setLocation, setLocationOffset, setLocationOffset, setMouseTouchCircle, setMouseTouchCircle, setMouseTouchEnabled, setMouseTouchImage, setMouseTouchImage, setMouseTouchRectangle, setMouseTouchRectangle, setOnBottom, setOnTop, setPixelLocation, setSlowDown, setTileCollisionEnabled, setVertMirror, setX, setY, show, show, showNextSprite, showPreviousSprite, turnpublic ToolBarText(java.lang.String text,
int height)
text - the text to displayheight - the height of the background rectangle in pixelspublic ToolBarText(java.lang.String text,
java.awt.Color textColor,
java.awt.Font font,
java.awt.Color bgColor,
int height)
text - the text to displaytextColor - the color of the textfont - the font of the textbgColor - the color of the background rectangleheight - the height of the background rectangle in pixels