Class Valve

Class Valve

java.lang.Object
   |
   +----Component
           |
           +----Valve

class Valve
extends Component
A valve component for the nuclear power plant
Version:
1.0
Author:
Henrik Eriksson

ventil_o_bm
Valve image
ventil_s_bm
Valve image

mouseDown(int, int)
Handle mouseDown events (i.e., clicks on the valve).
paint(Graphics)
Paint operation for valve

ventil_o_bm
  protected static Image ventil_o_bm
Valve image
ventil_s_bm
  protected static Image ventil_s_bm
Valve image

paint
  public void paint(Graphics g)
Paint operation for valve
Parameters:
g - The graphics context

mouseDown

  public void mouseDown(int mx,
                        int my)
Handle mouseDown events (i.e., clicks on the valve).
Parameters:
mx - The X coordinate
my - The Y coordinate