VANET Simulator
 All Classes Functions Variables
Public Member Functions | List of all members
vanetsim.gui.controlpanels.MainControlPanel Class Reference
Inheritance diagram for vanetsim.gui.controlpanels.MainControlPanel:

Public Member Functions

 MainControlPanel ()
 
JFileChooser getFileChooser ()
 
void changeFileChooser (boolean acceptAll, boolean acceptXML, boolean acceptOSM)
 
SimulateControlPanel getSimulatePanel ()
 
EditControlPanel getEditPanel ()
 
ReportingControlPanel getReportingPanel ()
 
Component getSelectedTabComponent ()
 
void stateChanged (ChangeEvent e)
 

Detailed Description

This class creates the control elements on the right side of the DrawingArea. The control panels itself are packed into a JTabbedPane and can be found in separate classes.

Constructor & Destructor Documentation

vanetsim.gui.controlpanels.MainControlPanel.MainControlPanel ( )
inline

Constructor for the main control panel.

Member Function Documentation

void vanetsim.gui.controlpanels.MainControlPanel.changeFileChooser ( boolean  acceptAll,
boolean  acceptXML,
boolean  acceptOSM 
)
inline

Changes the available file choosers of the central JFileChooser.

Parameters
acceptAlladds a file chooser to select all files
acceptXMLadds a file chooser to select XML files
acceptOSMadds a file chooser to select OpenStreetMap-files (*.osm)
EditControlPanel vanetsim.gui.controlpanels.MainControlPanel.getEditPanel ( )
inline

Gets the control panel on the edit tab.

Returns
the control panel
JFileChooser vanetsim.gui.controlpanels.MainControlPanel.getFileChooser ( )
inline

Gets the central JFileChooser. If it does not exist, it waits until it's created in the separate thread started from the constructor.

Returns
the file chooser
ReportingControlPanel vanetsim.gui.controlpanels.MainControlPanel.getReportingPanel ( )
inline

Gets the control panel on the reporting tab.

Returns
the control panel
Component vanetsim.gui.controlpanels.MainControlPanel.getSelectedTabComponent ( )
inline

Gets the currently selected tab component.

Returns
the currently selected tab component
SimulateControlPanel vanetsim.gui.controlpanels.MainControlPanel.getSimulatePanel ( )
inline

Gets the control panel on the simulation tab.

Returns
the control panel
void vanetsim.gui.controlpanels.MainControlPanel.stateChanged ( ChangeEvent  e)
inline

An implemented ChangeListener for the tabs.

Parameters
ea ChangeEvent

The documentation for this class was generated from the following file: