Изменено форматирование кода
This commit is contained in:
parent
eb9938a360
commit
aa1469a83d
@ -1,4 +1,5 @@
|
||||
package projectMonorail;
|
||||
|
||||
public enum DirectionType {
|
||||
Up,
|
||||
|
||||
|
@ -6,8 +6,6 @@ public class DrawingMonorail {
|
||||
|
||||
private EntityMonorail entityMonorail;
|
||||
|
||||
private DrawingWheels drawingWheels;
|
||||
|
||||
public EntityMonorail getEntityMonorail() {
|
||||
return entityMonorail;
|
||||
}
|
||||
@ -16,6 +14,8 @@ public class DrawingMonorail {
|
||||
this.entityMonorail = entityMonorail;
|
||||
}
|
||||
|
||||
private DrawingWheels drawingWheels;
|
||||
|
||||
private int pictureWidth;
|
||||
|
||||
private int pictureHeight;
|
||||
|
@ -3,6 +3,7 @@ package projectMonorail;
|
||||
import java.awt.*;
|
||||
|
||||
public class DrawingWheels {
|
||||
|
||||
private WheelNumber wheelNumber;
|
||||
|
||||
public void setWheelNumber(int number) {
|
||||
|
@ -49,6 +49,7 @@ public class EntityMonorail {
|
||||
public boolean getMagneticRail() {
|
||||
return magneticRail;
|
||||
}
|
||||
|
||||
private void setMagneticRail(boolean magneticRail) {
|
||||
this.magneticRail = magneticRail;
|
||||
}
|
||||
|
@ -17,5 +17,4 @@ public class FrameMonorail extends JFrame {
|
||||
setLocationRelativeTo(null);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ package projectMonorail;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
FrameMonorail frame = new FrameMonorail();
|
||||
FrameMonorail frameMonorail = new FrameMonorail();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
package projectMonorail;
|
||||
|
||||
public enum WheelNumber {
|
||||
Two,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user