|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Display
Aquarium Lab Series: The Display class contains methods for displaying AquaFish in an Aquarium.
Aquarium
,
AquaFish
Constructor Summary | |
Display(Aquarium a)
Construct a Display Object to display AquaFish in an Aquarium |
Method Summary | |
void |
pause()
Pause. |
void |
setDelay(int delay)
Set the delay time used by show (length of pause
between steps). |
void |
setTitle(java.lang.String s)
Set the title to appear in the Title Bar of the "window". |
void |
show(java.util.Vector fishVector)
Show a Vector of AquaFish in the Aquarium and pause. |
void |
showAquarium()
Display the Aquarium: paint the aquarium blue to cover up old fish. |
void |
showFish(AquaFish f)
Display a single AquaFish. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Display(Aquarium a)
a
- the Aquarium to DisplayMethod Detail |
public void setTitle(java.lang.String s)
s
- the titlepublic void setDelay(int delay)
show
(length of pause
between steps).delay
- length of pause between each step (in microseconds)public void show(java.util.Vector fishVector)
a
- Vector of AquaFish to be displayedpublic void showAquarium()
public void showFish(AquaFish f)
f
- the fish to be displayedpublic void pause()
setDelay
.
Not necessary when displaying an entire vector of fish.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |