|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.ObjectBugWorld
This class creates and manages an active surface for the Gobbler program.
| Constructor Summary | |
BugWorld(int r,
int c)
Using the cell counts given, create a new window. |
|
| Method Summary | |
void |
animate(int millis)
Step the model continuously with a pause in between each step. |
void |
keyPressed(uwcse.graphics.GWindowEvent arg0)
|
void |
keyReleased(uwcse.graphics.GWindowEvent arg0)
|
void |
mouseDragged(uwcse.graphics.GWindowEvent arg0)
|
void |
mousePressed(uwcse.graphics.GWindowEvent arg0)
|
void |
mouseReleased(uwcse.graphics.GWindowEvent arg0)
|
void |
step()
Step the model one simulation step. |
void |
timerExpired(uwcse.graphics.GWindowEvent arg0)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BugWorld(int r,
int c)
r - number of rows of cellsc - number of columns of cells| Method Detail |
public void step()
MatrixController
step in interface MatrixControllerMatrixController.step()public void animate(int millis)
MatrixController
animate in interface MatrixControllermillis - the number of milliseconds between each clock tickMatrixController.animate(int)public void mousePressed(uwcse.graphics.GWindowEvent arg0)
mousePressed in interface uwcse.graphics.GWindowEventHandlerGWindowEventHandler.mousePressed(uwcse.graphics.GWindowEvent)public void mouseReleased(uwcse.graphics.GWindowEvent arg0)
mouseReleased in interface uwcse.graphics.GWindowEventHandlerGWindowEventHandler.mouseReleased(uwcse.graphics.GWindowEvent)public void mouseDragged(uwcse.graphics.GWindowEvent arg0)
mouseDragged in interface uwcse.graphics.GWindowEventHandlerGWindowEventHandler.mouseDragged(uwcse.graphics.GWindowEvent)public void timerExpired(uwcse.graphics.GWindowEvent arg0)
timerExpired in interface uwcse.graphics.GWindowEventHandlerGWindowEventHandler.timerExpired(uwcse.graphics.GWindowEvent)public void keyPressed(uwcse.graphics.GWindowEvent arg0)
keyPressed in interface uwcse.graphics.GWindowEventHandlerGWindowEventHandler.keyPressed(uwcse.graphics.GWindowEvent)public void keyReleased(uwcse.graphics.GWindowEvent arg0)
keyReleased in interface uwcse.graphics.GWindowEventHandlerGWindowEventHandler.keyReleased(uwcse.graphics.GWindowEvent)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||