|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Aquarium Lab Series:
The AquaSimGUI class provides a graphical user interface
to the Aquarium Lab Series. This class uses the Java
Power Tools (JPT) classes from Northeastern University to
build the graphical interface. In particular, it inherits
the repaint method (which does not appear in
the specification for this class) from the JPT DisplayPanel
class. The repaint method draws the
components in the graphical user interface.
| Constructor Summary | |
AquaSimGUI(Aquarium aquarium)
Construct a simple graphical user interface for the Aquarium Simulation program. |
|
| Method Summary | |
void |
pauseToView()
Pause so user can view the display. |
void |
show(AquaFish[] fishList)
Display all the AquaFish in the fishList array. |
void |
show(java.util.ArrayList fishList)
Display all the AquaFish in the fishList list. |
void |
showAquarium()
Display only the Aquarium: paint the aquarium blue to cover up old fish. |
void |
showFish(AquaFish fish)
Display a single AquaFish. |
| Constructor Detail |
public AquaSimGUI(Aquarium aquarium)
aquarium - the aquarium in which the fish swim| Method Detail |
public void show(AquaFish[] fishList)
fishList array.
Paints the aquarium blue to cover up old fish and displays
the fish in the array.
fishList - the array of AquaFish to be displayedpublic void show(java.util.ArrayList fishList)
fishList list.
Paints the aquarium blue to cover up old fish and displays
the fish in the list.
fishList - the list of AquaFish to be displayedpublic void showAquarium()
public void showFish(AquaFish fish)
fish - the fish to be displayedpublic void pauseToView()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||