From 6a345bc1a7a3c181e23146bdb65ba429b72d668d Mon Sep 17 00:00:00 2001 From: Loris Gilliand Date: Wed, 22 May 2019 19:58:50 +0200 Subject: [PATCH] Reformat code for GUI Files --- .../java/ch/heigvd/sitr/gui/settings/SettingsWindow.java | 2 ++ .../java/ch/heigvd/sitr/gui/simulation/CarControlPanel.java | 5 +++-- src/main/java/ch/heigvd/sitr/gui/simulation/MapPanel.java | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/heigvd/sitr/gui/settings/SettingsWindow.java b/src/main/java/ch/heigvd/sitr/gui/settings/SettingsWindow.java index 7c8a9ee..ef27f63 100644 --- a/src/main/java/ch/heigvd/sitr/gui/settings/SettingsWindow.java +++ b/src/main/java/ch/heigvd/sitr/gui/settings/SettingsWindow.java @@ -69,6 +69,7 @@ public void showWindow() { /** * Method used to get the selected scenario + * * @return the selected scenario */ public Scenario getSelectedScenario() { @@ -81,6 +82,7 @@ public int getNumberOfController(VehicleControllerType vct) { /** * Method used to get the selected behaviour of the simulation + * * @return the selected behaviour */ public VehicleBehaviour getSelectedBehaviour() { diff --git a/src/main/java/ch/heigvd/sitr/gui/simulation/CarControlPanel.java b/src/main/java/ch/heigvd/sitr/gui/simulation/CarControlPanel.java index 856851c..a0ebff6 100644 --- a/src/main/java/ch/heigvd/sitr/gui/simulation/CarControlPanel.java +++ b/src/main/java/ch/heigvd/sitr/gui/simulation/CarControlPanel.java @@ -113,7 +113,7 @@ public void actionPerformed(ActionEvent e) { this.add(colorChangeLabel, gbc); colorChangeButton = new JButton(); - colorChangeButton.setPreferredSize(new Dimension(25,25)); + colorChangeButton.setPreferredSize(new Dimension(25, 25)); colorChangeButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -248,7 +248,8 @@ public void actionPerformed(ActionEvent e) { /** * Method used to update the observer. In this case, refresh the statistics of the * selected car. - * @param o the selected car + * + * @param o the selected car * @param arg param used to notify all observers of o (never used in this app) */ @Override diff --git a/src/main/java/ch/heigvd/sitr/gui/simulation/MapPanel.java b/src/main/java/ch/heigvd/sitr/gui/simulation/MapPanel.java index 0d65c1e..d253767 100644 --- a/src/main/java/ch/heigvd/sitr/gui/simulation/MapPanel.java +++ b/src/main/java/ch/heigvd/sitr/gui/simulation/MapPanel.java @@ -67,6 +67,7 @@ public void mousePressed(MouseEvent e) { /** * Not Implemented + * * @param e mouse event */ @Override @@ -75,6 +76,7 @@ public void mouseClicked(MouseEvent e) { /** * Not Implemented + * * @param e mouse event */ @Override @@ -83,6 +85,7 @@ public void mouseReleased(MouseEvent e) { /** * Not Implemented + * * @param e mouse event */ @Override @@ -91,6 +94,7 @@ public void mouseEntered(MouseEvent e) { /** * Not Implemented + * * @param e mouse event */ @Override