edu.turtlekit2.ui
Class ControlBoard

java.lang.Object
  extended by edu.turtlekit2.ui.ControlBoard
All Implemented Interfaces:
ActionListener, EventListener

public class ControlBoard
extends Object
implements ActionListener

This class defines the Graphics object to execute the simulation.

Version:
0.7 - 07/2008
Author:
F. Michel, G. Beurier
See Also:
SimulationRunner

Field Summary
 JButton addViewer
           
 JPanel allbuttons
           
 JButton bProp
           
 JPanel buttons
           
 JPanel contentPane
           
 JPanel cycle
           
 JButton python
           
 JButton reset
           
 JButton startStop
           
 JButton step
           
 JLabel stepLabel
           
 madkit.kernel.OPanel textDisplay
           
 JButton wrapOnOff
           
 
Constructor Summary
ControlBoard(SimulationRunner l)
          Constructor for the ControlBoard
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  ImageIcon createImageIcon(String path, String description)
           
 void initButtons()
           
 void initConsole()
           
 void initialisation()
           
 void initSliders()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startStop

public JButton startStop

wrapOnOff

public JButton wrapOnOff

addViewer

public JButton addViewer

reset

public JButton reset

step

public JButton step

python

public JButton python

buttons

public JPanel buttons

allbuttons

public JPanel allbuttons

cycle

public JPanel cycle

textDisplay

public madkit.kernel.OPanel textDisplay

bProp

public JButton bProp

contentPane

public JPanel contentPane

stepLabel

public JLabel stepLabel
Constructor Detail

ControlBoard

public ControlBoard(SimulationRunner l)
Constructor for the ControlBoard

Parameters:
l - - the runner of the simulation
Method Detail

createImageIcon

protected ImageIcon createImageIcon(String path,
                                    String description)

initButtons

public void initButtons()

initSliders

public void initSliders()

initConsole

public void initConsole()

initialisation

public void initialisation()

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener