Class Tank
Class Tank
java.lang.Object
|
+----Component
|
+----Tank
-
class
Tank
-
extends Component
A generic tank component for the nuclear power plant
-
Version:
-
1.0
-
Author:
-
Henrik Eriksson
-
imageState
-
The number of the water image shown
-
vatten_bm
-
Water (surface) images for animation
-
Tank()
-
-
paintBubbles(Graphics, int, int, int, int, int)
-
Paint animated bubbles in a region
imageState
protected int imageState
-
The number of the water image shown
vatten_bm
protected static Image vatten_bm[]
-
Water (surface) images for animation
Tank
public Tank()
paintBubbles
protected void paintBubbles(Graphics g,
int x,
int y,
int width,
int depth,
int noOfBubbles)
-
Paint animated bubbles in a region
-
Parameters:
-
g
-
The graphics context
-
x
-
The X position for the bubble region
-
y
-
The Y position for the bubble region
-
width
-
The width of the bubble region
-
height
-
The height of the bubble region
-
noOfBubbles
-
The bubble frequency