public class ToolBarItem extends Actor
Constructor and Description |
---|
ToolBarItem(android.graphics.Bitmap... spriteImages)
Constructs a tool bar item based on one or several sprite images
defined by the given bitmap images.
|
ToolBarItem(java.lang.String filename)
Constructs a tool bar item with one sprite image.
|
ToolBarItem(java.lang.String filename,
int nbSprites)
Constructs a tool bar item using nbSprites sprite images.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilename()
Returns the filename of the sprite image.
|
int |
getNumberOfSprites()
Returns the number of sprite images specified for this actor.
|
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 ToolBarItem(android.graphics.Bitmap... spriteImages)
Actor.Actor(Bitmap... bis)
public ToolBarItem(java.lang.String filename)
filename
- the path to the image file displayed
for this actorActor.Actor(String filename)
public ToolBarItem(java.lang.String filename, int nbSprites)
filename
- the path to the image file displayed
for this actornbSprites
- the number of sprite images for the same actorActor.Actor(String filename, int nbSprites)