|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object group1.view.Sprite
public class Sprite
Constructor Summary | |
---|---|
Sprite()
The default constructor |
|
Sprite(java.awt.Rectangle r)
The constructor given boundaries |
Method Summary | |
---|---|
void |
addImage(javax.swing.ImageIcon i)
|
static void |
main(java.lang.String[] args)
The main method is just for testing purposes |
javax.swing.ImageIcon |
nextPicture()
This method returns the next picture in the animation order, and updates the currentPicture |
void |
setBoundaries(int x,
int y,
int width,
int height)
|
void |
setBoundaries(java.awt.Rectangle r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sprite()
public Sprite(java.awt.Rectangle r)
r
- Method Detail |
---|
public void setBoundaries(java.awt.Rectangle r)
public void setBoundaries(int x, int y, int width, int height)
public void addImage(javax.swing.ImageIcon i)
public javax.swing.ImageIcon nextPicture()
public static void main(java.lang.String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |