gps.gui
Class SimGuiControl

java.lang.Object
  extended by gps.gui.SimGuiControl

public class SimGuiControl
extends java.lang.Object

Control object of M/V/C, all the global commands are directed to this object

Version:
1.2, 6/20/2005
Author:
Weishuai Yang

Constructor Summary
SimGuiControl(SimGui sg)
          constructs new control object with gui reference
 
Method Summary
 void about()
          simulator information
 ControlPanel getControlPanel()
          get control panel
 GraphPanel getGraphPanel()
          get graph panel
 SimGui getSimGui()
          get gui
 double getVersion()
          gets simulator version
 void loadInit()
          loads initial value to gui
 void openConf()
          opens configuration file
 void openGraph()
          opens graph file through gui
 boolean openGraph(java.lang.String filepath)
          opens graph file
 void openResume()
          opens resume file, not implemented yet
 void options()
          setting options
 void quit()
          quit simulator
 void resetProgress()
          reset progress bar
 void resume()
          resume simulation
 void run()
          run simulation
 void saveConf()
          saves configuration file
 void setControlPanel(javax.swing.JPanel i)
          set control panel
 void setGraphPanel(javax.swing.JPanel g)
          set graph panel
 void stop()
          pause simulation
 void terminate()
          terminate simulation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimGuiControl

public SimGuiControl(SimGui sg)
constructs new control object with gui reference

Parameters:
sg - reference to SimGui
Method Detail

setGraphPanel

public void setGraphPanel(javax.swing.JPanel g)
set graph panel

Parameters:
g - reference to graph panel

setControlPanel

public void setControlPanel(javax.swing.JPanel i)
set control panel

Parameters:
i - reference to control panel

getGraphPanel

public GraphPanel getGraphPanel()
get graph panel

Returns:
graph panel object

getControlPanel

public ControlPanel getControlPanel()
get control panel

Returns:
control panel object

getSimGui

public SimGui getSimGui()
get gui

Returns:
gui object

openConf

public void openConf()
opens configuration file


saveConf

public void saveConf()
saves configuration file


loadInit

public void loadInit()
loads initial value to gui


openGraph

public void openGraph()
opens graph file through gui


openGraph

public boolean openGraph(java.lang.String filepath)
opens graph file

Parameters:
filepath - path to the graph file

openResume

public void openResume()
opens resume file, not implemented yet


run

public void run()
run simulation


stop

public void stop()
pause simulation


resume

public void resume()
resume simulation


terminate

public void terminate()
terminate simulation


quit

public void quit()
quit simulator


options

public void options()
setting options


about

public void about()
simulator information


resetProgress

public void resetProgress()
reset progress bar


getVersion

public double getVersion()
gets simulator version

Returns:
version