Class View

java.lang.Object
  |
  +--View

public class View
extends java.lang.Object

Displays the progress of the rabbit hunt.

Version:
October 12, 2001
Author:
David Matuszek

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

View(java.lang.Object[][] field)
Constructs a View for the given field.
Parameters:
field - the field on the fox hunts the rabbit
Method Detail

displayChanges

void displayChanges()
Erases the fox and rabbit from their old positions on the screen and redraws them in their new positions.

displayEverything

void displayEverything()
Redraws the entire field display from scratch.

setCanvas

void setCanvas(java.awt.Canvas canvas)
Tells this View what canvas it should use for its display.
Parameters:
canvas - the canvas to use


Generated by BlueJ