Game of Life 1.5

org.bitstorm.gameoflife
Interface GameOfLifeControlsListener

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

public interface GameOfLifeControlsListener
extends java.util.EventListener

Listener interface for GameOfLifeControls. The idea behind this interface is that the controls can be replaced by something else for e.g. smart phones and PDA's.

Author:
Edwin Martin
See Also:
GameOfLifeControls

Method Summary
 void nextButtonClicked(GameOfLifeControlsEvent e)
          The Next button is clicked.
 void shapeSelected(GameOfLifeControlsEvent e)
          A new shape is selected.
 void speedChanged(GameOfLifeControlsEvent e)
          A new speed is selected.
 void startStopButtonClicked(GameOfLifeControlsEvent e)
          The Start/Stop button is clicked.
 void zoomChanged(GameOfLifeControlsEvent e)
          A new cell size is selected.
 

Method Detail

startStopButtonClicked

public void startStopButtonClicked(GameOfLifeControlsEvent e)
The Start/Stop button is clicked.

Parameters:
e - event object

nextButtonClicked

public void nextButtonClicked(GameOfLifeControlsEvent e)
The Next button is clicked.

Parameters:
e - event object

speedChanged

public void speedChanged(GameOfLifeControlsEvent e)
A new speed is selected.

Parameters:
e - event object

zoomChanged

public void zoomChanged(GameOfLifeControlsEvent e)
A new cell size is selected.

Parameters:
e - event object

shapeSelected

public void shapeSelected(GameOfLifeControlsEvent e)
A new shape is selected.

Parameters:
e - event object

Game of Life 1.5

This API descibes the Game of Life program, written by Edwin Martin. The source code is available online too.

Copyright 1996-2004 Edwin Martin <edwin@bitstorm.org>.