net.jimmc.spelsim
Class ISimAdapter

java.lang.Object
  extended by net.jimmc.spelsim.ISimAdapter
All Implemented Interfaces:
ISimListener

public abstract class ISimAdapter
extends java.lang.Object
implements ISimListener

A convenience adapter for ISimListener.


Constructor Summary
ISimAdapter()
           
 
Method Summary
abstract  void simStepped(SpelCanvas canvas, boolean didDraw)
          Called after the simulator has taken a step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISimAdapter

public ISimAdapter()
Method Detail

simStepped

public abstract void simStepped(SpelCanvas canvas,
                                boolean didDraw)
Called after the simulator has taken a step.

Specified by:
simStepped in interface ISimListener
Parameters:
canvas - The drawing canvas.
didDraw - True if we refreshed the screen, false if we only did a simulation step without a redraw.