Class SimButtonListener
java.lang.Object
SimButtonListener
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimButtonListener
public SimButtonListener(SimModel world)
- Constructor for objects of class SimButton
- Parameters:
world
- the model object of the simulation
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