|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFireworksController
public class FireworksController
This class controls the moving, drawing and creation of fireworks.
| Constructor Summary | |
|---|---|
FireworksController()
Create a new FireWorksController that starts with no fireworks. |
|
| Method Summary | |
|---|---|
void |
makeFirework(int x,
int y)
This method creates a new firework at the specified location. |
void |
moveAll()
Tell all the current Particles to move themselves. |
void |
paintAll(java.awt.Graphics graphics)
Tells all the current Particles to draw themselves using the given Graphics object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FireworksController()
| Method Detail |
|---|
public void moveAll()
public void paintAll(java.awt.Graphics graphics)
graphics - The Graphics object to use for drawing
public void makeFirework(int x,
int y)
x - The x coordinate of the mouse clicky - The y coordinate of the mouse click
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||