|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.jgamegrid.Actor ch.aplu.jgamegrid.ToolBarItem
public class ToolBarItem
A class to represent actors used for tool bar items. All sprites images in a tool bar should have the same height.
Field Summary |
---|
Fields inherited from class ch.aplu.jgamegrid.Actor |
---|
gameGrid, nbCycles |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
java.lang.String |
getFilename()
Returns the filename of the sprite image. |
int |
getNumberOfSprites()
Returns the number of sprite images specified for this actor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
public java.lang.String getFilename()
public int getNumberOfSprites()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |