\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
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(-2, -2, 4, 4);\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