java.lang.Object | +--View
Displays the progress of the rabbit hunt.
| Constructor Summary | |
(package private) |
View(java.lang.Object[][] field)
Constructs a View for the given field. |
| Method Summary | |
(package private) void |
displayChanges()
Erases the fox and rabbit from their old positions on the screen and redraws them in their new positions. |
(package private) void |
displayEverything()
Redraws the entire field display from scratch. |
(package private) void |
setCanvas(java.awt.Canvas canvas)
Tells this View what canvas it should use for its display. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
View(java.lang.Object[][] field)
field - the field on the fox hunts the rabbit| Method Detail |
void displayChanges()
void displayEverything()
void setCanvas(java.awt.Canvas canvas)
canvas - the canvas to use