jbotrace.gui
Class Control

java.lang.Object
  |
  +--jbotrace.gui.Control

public class Control
extends java.lang.Object

Description:


Constructor Summary
Control()
          Initialises the control for the gui and the gui itself
 
Method Summary
 java.lang.String getGraphicsDirectory()
          Returns graphics directory
 Race getRace()
          Returns the current race.
 Driver loadDriver()
          Shows a filechooser and tries to load the selected driver from a class or java file.
 Track openTrack()
          Shows a filechooser and tries to open the selected track
 void setRace(Race race)
          Sets the current race.
 void showNewRaceFrame()
          Shows the frame to configure a new race
 void startRace()
          Starts the current race
 void stopRace()
          Stops the current race
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Control

public Control()
Initialises the control for the gui and the gui itself

Method Detail

getRace

public Race getRace()
Returns the current race.


loadDriver

public Driver loadDriver()
Shows a filechooser and tries to load the selected driver from a class or java file.


getGraphicsDirectory

public java.lang.String getGraphicsDirectory()
Returns graphics directory


openTrack

public Track openTrack()
Shows a filechooser and tries to open the selected track


showNewRaceFrame

public void showNewRaceFrame()
Shows the frame to configure a new race


setRace

public void setRace(Race race)
Sets the current race.


startRace

public void startRace()
Starts the current race


stopRace

public void stopRace()
Stops the current race