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) |
This class represents the control panel for adding vehicles by click.
|
inline |
Constructor.
|
inline |
An implemented ActionListener
which performs all needed actions when a JButton
, or a JComboBox
, or a JRadioButton
is clicked.
e | an ActionEvent |
|
inline |
Gets the vehicle acceleration rate TextField
|
inline |
Gets the TextAreaLabel in the add vehicle menu
|
inline |
Gets the vehicle braking rate TextField
|
inline |
Gets the vehicle color Panel
|
inline |
Gets the vehicle communications distance TextField
|
inline |
Gets the vehicle speed TextField
|
inline |
Gets the vehicle wait time TextField
|
inline |
Receives a mouse event.
x | the x coordinate (in map scale) |
y | the y coordinate (in map scale) |
|
inline |
updates the vehicle type combobox
|
inline |
Sets the visibility of GUI elements for adding vehicles