ch.aplu.jgamegrid
Class GGNavigationAdapter

java.lang.Object
  extended by ch.aplu.jgamegrid.GGNavigationAdapter
All Implemented Interfaces:
GGNavigationListener, java.util.EventListener

public class GGNavigationAdapter
extends java.lang.Object
implements GGNavigationListener

Implementation of empty methods of GGNavigationListener.


Constructor Summary
GGNavigationAdapter()
           
 
Method Summary
 boolean paused()
          Event callback method called when the pause button is hit.
 boolean periodChanged(int simulationPeriod)
          Event callback method called when the simulation period slider is moved.
 boolean resetted()
          Event callback method called when the reset button is hit.
 boolean started()
          Event callback method called when the run button is hit.
 boolean stepped()
          Event callback method called when the step button is hit.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GGNavigationAdapter

public GGNavigationAdapter()
Method Detail

started

public boolean started()
Event callback method called when the run button is hit.

Specified by:
started in interface GGNavigationListener
Returns:
true, if the event is consumed, so doRun() will not be called.

paused

public boolean paused()
Event callback method called when the pause button is hit.

Specified by:
paused in interface GGNavigationListener
Returns:
true, if the event is consumed, so doPause() will not be called.

stepped

public boolean stepped()
Event callback method called when the step button is hit.

Specified by:
stepped in interface GGNavigationListener
Returns:
true, if the event is consumed, so doStep() will not be called.

resetted

public boolean resetted()
Event callback method called when the reset button is hit.

Specified by:
resetted in interface GGNavigationListener
Returns:
true, if the event is consumed, so doReset() will not be called.

periodChanged

public boolean periodChanged(int simulationPeriod)
Event callback method called when the simulation period slider is moved.

Specified by:
periodChanged in interface GGNavigationListener
Parameters:
simulationPeriod - the new value of the simulation period
Returns:
true, if the event is consumed, so setSimulationPeriod() will not be called.