Class SimButtonListener

java.lang.Object
  extended bySimButtonListener
All Implemented Interfaces:
ActionListener, EventListener

class SimButtonListener
extends Object
implements ActionListener

Handle button clicks for the BallSimControl window.

Version:
10/20/01, 4/18/03, 4/19/04
Author:
Hal Perkins

Constructor Summary
SimButtonListener(SimModel world)
          Constructor for objects of class SimButton
 
Method Summary
 void actionPerformed(ActionEvent e)
          Process button clicks by turning the simulation on and off
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimButtonListener

public SimButtonListener(SimModel world)
Constructor for objects of class SimButton

Parameters:
world - the model object of the simulation
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Process button clicks by turning the simulation on and off

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - the event created by the button click