|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ed.inf.sdp2012.group7.ui.ControlGUI
public class ControlGUI
Creates and maintains the swing-based Control GUI, which provides both control manipulation (pitch choice, direction, etc) and threshold setting. Also allows the saving/loading of threshold values to a file.
Constructor Summary | |
---|---|
ControlGUI(Strategy s)
Default constructor. |
Method Summary | |
---|---|
void |
initGUI()
Initialise the GUI, setting up all of the components and adding the required listeners. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlGUI(Strategy s)
thresholdsState
- A ThresholdsState object to update the threshold slider
values.worldState
- A WorldState object to update the pitch choice, shooting
direction, etc.Method Detail |
---|
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void initGUI()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |