|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is implemented by any class that wishes to provide a view of a MatrixModel.
| Method Summary | |
void |
addCritter(Critter bug,
int[] curLoc)
Add the given Critter to the collection of Critters we are displaying. |
uwcse.graphics.GWindow |
getGWindow()
Get the GWindow associated with this view for use by a MatrixController. |
void |
moveCritter(Critter bug,
int[] newLoc)
Update the display to reflect a new position for the given Critter. |
void |
removeCritter(Critter bug)
Remove the given Critter from the collection of Critters we are displaying. |
void |
resumeRepaints()
Resume repainting this view's window. |
void |
suspendRepaints()
Suspend repainting this view's window because we are going to do a bunch of updates. |
| Method Detail |
public uwcse.graphics.GWindow getGWindow()
public void addCritter(Critter bug,
int[] curLoc)
bug - the Critter to addcurLoc - a 2-element int array containing the current cell location
of this Critter. The row address is in element [0] and
the column address is in element [1].public void removeCritter(Critter bug)
bug - the Critter to remove
public void moveCritter(Critter bug,
int[] newLoc)
bug - the Critter to movenewLoc - a 2-element int array containing the new cell location
of this Critter. The row address is in element [0] and
the column address is in element [1].public void suspendRepaints()
public void resumeRepaints()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||