public class ToolBarItem extends Actor
Constructor and Description |
---|
ToolBarItem(java.awt.image.BufferedImage... spriteImages)
Constructs a tool bar item based on one or several sprite images
defined by the given buffered 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, 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, turn
public ToolBarItem(java.awt.image.BufferedImage... spriteImages)
Actor.Actor(BufferedImage... bis)
public ToolBarItem(java.lang.String filename)
filename
- the fully qualified path to the image file displayed
for this actorActor.Actor(String filename)
public ToolBarItem(java.lang.String filename, int nbSprites)
filename
- the fully qualified path to the image file displayed
for this actornbSprites
- the number of sprite images for the same actorActor.Actor(String filename, int nbSprites)