ch.aplu.jgamegrid
Interface GGNavigationListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
GGNavigationAdapter

public interface GGNavigationListener
extends java.util.EventListener

Declarations of the notification method called when the navigation panel is used.


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.
 

Method Detail

started

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

Returns:
true, if the event is consumed, so doRun() will not be called.

paused

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

Returns:
true, if the event is consumed, so doPause() will not be called.

stepped

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

Returns:
true, if the event is consumed, so doStep() will not be called.

resetted

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

Returns:
true, if the event is consumed, so doReset() will not be called and any registered GGResetListener callback will not be fired

periodChanged

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

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