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

Public Member Functions

 EditOneVehicleControlPanel ()
 
void receiveMouseEvent (int x, int y)
 
void actionPerformed (ActionEvent e)
 
void refreshVehicleTypes ()
 
void setGuiElements (String command)
 
JFormattedTextField getWait ()
 
JFormattedTextField getSpeed ()
 
JFormattedTextField getCommDist ()
 
JPanel getColorPreview ()
 
JFormattedTextField getBrakingRate ()
 
JFormattedTextField getAccelerationRate ()
 
TextAreaLabel getAddNote ()
 
void mouseClicked (MouseEvent e)
 
void mouseEntered (MouseEvent e)
 
void mouseExited (MouseEvent e)
 
void mousePressed (MouseEvent e)
 
void mouseReleased (MouseEvent e)
 

Detailed Description

This class represents the control panel for adding vehicles by click.

Constructor & Destructor Documentation

vanetsim.gui.controlpanels.EditOneVehicleControlPanel.EditOneVehicleControlPanel ( )
inline

Constructor.

Member Function Documentation

void vanetsim.gui.controlpanels.EditOneVehicleControlPanel.actionPerformed ( ActionEvent  e)
inline

An implemented ActionListener which performs all needed actions when a JButton, or a JComboBox, or a JRadioButton is clicked.

Parameters
ean ActionEvent
JFormattedTextField vanetsim.gui.controlpanels.EditOneVehicleControlPanel.getAccelerationRate ( )
inline

Gets the vehicle acceleration rate TextField

Returns
the accelerationRate_ TextField
TextAreaLabel vanetsim.gui.controlpanels.EditOneVehicleControlPanel.getAddNote ( )
inline

Gets the TextAreaLabel in the add vehicle menu

Returns
addNote_ the add note
JFormattedTextField vanetsim.gui.controlpanels.EditOneVehicleControlPanel.getBrakingRate ( )
inline

Gets the vehicle braking rate TextField

Returns
the brakingRate_ TextField
JPanel vanetsim.gui.controlpanels.EditOneVehicleControlPanel.getColorPreview ( )
inline

Gets the vehicle color Panel

Returns
the colorPreview_ Panel
JFormattedTextField vanetsim.gui.controlpanels.EditOneVehicleControlPanel.getCommDist ( )
inline

Gets the vehicle communications distance TextField

Returns
the commDist_ TextField
JFormattedTextField vanetsim.gui.controlpanels.EditOneVehicleControlPanel.getSpeed ( )
inline

Gets the vehicle speed TextField

Returns
the speed_ TextField
JFormattedTextField vanetsim.gui.controlpanels.EditOneVehicleControlPanel.getWait ( )
inline

Gets the vehicle wait time TextField

Returns
the wait_ TextField
void vanetsim.gui.controlpanels.EditOneVehicleControlPanel.receiveMouseEvent ( int  x,
int  y 
)
inline

Receives a mouse event.

Parameters
xthe x coordinate (in map scale)
ythe y coordinate (in map scale)
void vanetsim.gui.controlpanels.EditOneVehicleControlPanel.refreshVehicleTypes ( )
inline

updates the vehicle type combobox

void vanetsim.gui.controlpanels.EditOneVehicleControlPanel.setGuiElements ( String  command)
inline

Sets the visibility of GUI elements for adding vehicles


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