simulation_BasicVersion
Class FrameAdvancer

java.lang.Object
  extended by simulation_BasicVersion.FrameAdvancer
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class FrameAdvancer
extends java.lang.Object
implements java.awt.event.ActionListener

This class encapsulates an listener that implements behaviours in response to action events. This class implements an ActionListener.

Author:
mb

Constructor Summary
FrameAdvancer(Picture gameCanvas)
          Creates a frame advancer, which is an ActionListener that can be installed on a ActionEvent dispatcher.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameAdvancer

public FrameAdvancer(Picture gameCanvas)
Creates a frame advancer, which is an ActionListener that can be installed on a ActionEvent dispatcher. Once installed, this object will cause, upon each ActionEvent, a new frame to be drawn on the passed Picture.

Parameters:
gameCanvas - as described above
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Specified by:
actionPerformed in interface java.awt.event.ActionListener