|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
fr.lifl.jedi.gui.control.graphicalControl.view.GraphicalSimulationControlGUI
public class GraphicalSimulationControlGUI
A GUI that defines buttons that rule simulation control. These buttons make possible to initialize, pause, run or abort the simulation.
JEDI V 2.2 |
Created the 2nd april 2009 |
Modified the 5th may 2009 |
Yoann Kubera |
SMAC Team (Systèmes Multi-Agents et Comportement) |
LIFL (Laboratoire d'Informatique Fondamentale de Lille) |
University of Lille, France |
Field Summary | |
---|---|
static int |
DEFAUT_DELAY_VALUE
The default minimal time elapsing between two simulation steps. |
static java.util.Map<IconIdentifier,javax.swing.ImageIcon> |
ICONS
The Map that contains all icons used in the GUI |
Constructor Summary | |
---|---|
GraphicalSimulationControlGUI(java.lang.String title)
Constructor of the simulation control GUI. |
|
GraphicalSimulationControlGUI(java.lang.String title,
int x,
int y)
Constructor of the simulation control GUI. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
javax.swing.JButton |
getAbortButton()
Gets the button used to abort the simulation. |
javax.swing.JFrame |
getControlFrame()
Gets the frame that displays all the control buttons. |
javax.swing.JLabel |
getCurrentStepLabel()
Gets the label that displays the current simulation step. |
javax.swing.JSlider |
getDelayBar()
Gets the slider that defines the minimal time that has to elapse between two simulation time steps. |
javax.swing.JButton |
getInitializationButton()
Gets the button used to initialize the simulation. |
javax.swing.JButton |
getRunOrPauseButton()
Gets the button used either to run the simulation, or pause the simulation. |
javax.swing.JButton |
getSingleStepButton()
Gets the button used to perform a single simulation step. |
void |
notifyObservers(ISimulationEvent m)
Notifies a message to all observers registered to this GUI. |
void |
removeObserver(java.util.Observer o)
Removes an observer from this GUI |
void |
stateChanged(javax.swing.event.ChangeEvent arg0)
|
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.lifl.jedi.gui.ISimulationGUI |
---|
addObserver |
Field Detail |
---|
public static final java.util.Map<IconIdentifier,javax.swing.ImageIcon> ICONS
public static final int DEFAUT_DELAY_VALUE
Constructor Detail |
---|
public GraphicalSimulationControlGUI(java.lang.String title)
The GUI is place at the center of the screen.
title
- The title of the window that displays this control gui.public GraphicalSimulationControlGUI(java.lang.String title, int x, int y)
title
- The title of the window that displays this control gui.x
- The x position of this frame.y
- The y position of this frame.Method Detail |
---|
public javax.swing.JLabel getCurrentStepLabel()
public javax.swing.JButton getAbortButton()
public javax.swing.JButton getRunOrPauseButton()
public javax.swing.JButton getSingleStepButton()
public javax.swing.JButton getInitializationButton()
public javax.swing.JSlider getDelayBar()
public javax.swing.JFrame getControlFrame()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void notifyObservers(ISimulationEvent m)
ISimulationGUI
notifyObservers
in interface ISimulationGUI
m
- The notified event.ISimulationGUI.notifyObservers(fr.lifl.jedi.gui.ISimulationEvent)
public void removeObserver(java.util.Observer o)
ISimulationGUI
removeObserver
in interface ISimulationGUI
o
- The observer to add to the GUIISimulationGUI.removeObserver(java.util.Observer)
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
WindowListener.windowActivated(java.awt.event.WindowEvent)
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
WindowListener.windowClosed(java.awt.event.WindowEvent)
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
WindowListener.windowClosing(java.awt.event.WindowEvent)
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
WindowListener.windowDeactivated(java.awt.event.WindowEvent)
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
WindowListener.windowDeiconified(java.awt.event.WindowEvent)
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
WindowListener.windowIconified(java.awt.event.WindowEvent)
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
WindowListener.windowOpened(java.awt.event.WindowEvent)
public void stateChanged(javax.swing.event.ChangeEvent arg0)
stateChanged
in interface javax.swing.event.ChangeListener
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |