public class ToolBarStack extends ToolBarItem
Constructor and Description |
---|
ToolBarStack(java.lang.String filename,
int nbItems)
Creates a set of with given number of items taken from the given filename
template.
|
Modifier and Type | Method and Description |
---|---|
int |
getItemId()
Returns the id of the item currently shown.
|
static int[] |
getSelectedItemIds()
Returns an array with length equals to the number of stacks.
|
static ToolBarStack[] |
getSelectedStacks()
Returns an array of all stacks that have the current item selected.
|
boolean |
isSelected()
Returns the state of the item currently shown.
|
void |
setSelected(boolean b)
Sets/deselects the item currently shown.
|
void |
showNext()
Shows the next item in the stack.
|
getFilename, getNumberOfSprites
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 ToolBarStack(java.lang.String filename, int nbItems)
filename
- the filename template of the sprite imagesnbItems
- the number of ranks in this stackpublic boolean isSelected()
public void setSelected(boolean b)
b
- if true, the item is selected; otherwise deselectedpublic int getItemId()
public void showNext()
public static ToolBarStack[] getSelectedStacks()
public static int[] getSelectedItemIds()