Made formatting uniform - commit for logicui
[Mograsim.git] / LogicUI / src / era / mi / gui / wires / WireConnectionPoint.java
index 50a275d..4b10f1c 100644 (file)
@@ -10,8 +10,8 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
 \r
 public class WireConnectionPoint implements BasicGUIComponent\r
 {\r
-       private final WireArray wa;\r
-       private final int               wiresCrossing;\r
+       private final WireArray wa;\r
+       private final int wiresCrossing;\r
 \r
        public WireConnectionPoint(WireArray wa, int wiresCrossing)\r
        {\r
@@ -23,26 +23,30 @@ public class WireConnectionPoint implements BasicGUIComponent
        public void render(GeneralGC gc)\r
        {\r
                Color oldBG = gc.getBackground();\r
-               if(wa.length == 1)\r
+               if (wa.length == 1)\r
                        gc.setBackground(gc.getDevice().getSystemColor(GUIWire.getSWTColorConstantForBit(wa.getValue())));\r
                gc.fillOval(-1, -1, 2, 2);\r
                gc.setBackground(oldBG);\r
        }\r
+\r
        @Override\r
        public Rectangle getBounds()\r
        {\r
                return new Rectangle(0, 0, 0, 0);\r
        }\r
+\r
        @Override\r
        public int getConnectedWireArraysCount()\r
        {\r
                return wiresCrossing;\r
        }\r
+\r
        @Override\r
        public WireArray getConnectedWireArray(int connectionIndex)\r
        {\r
                return wa;\r
        }\r
+\r
        @Override\r
        public Point getWireArrayConnectionPoint(int connectionIndex)\r
        {\r