Removed drawing of connection points
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 16 May 2019 08:55:56 +0000 (10:55 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 16 May 2019 08:55:56 +0000 (10:55 +0200)
LogicUI/src/era/mi/gui/examples/LogicUI.java

index ebe61b8..b3d2488 100644 (file)
@@ -104,15 +104,7 @@ public class LogicUI
        }\r
        private void drawComponent(GeneralGC gc, BasicGUIComponent component)\r
        {\r
-               TranslatedGC tgc = new TranslatedGC(gc, componentPositions.get(component));\r
-               component.render(tgc);\r
-               tgc.setBackground(display.getSystemColor(SWT.COLOR_BLUE));\r
-               for(int i = 0; i < component.getConnectedWireArraysCount(); i ++)\r
-               {\r
-                       Point connectionPoint = component.getWireArrayConnectionPoint(i);\r
-                       if(connectionPoint != null)\r
-                               tgc.fillOval(connectionPoint.x - 1, connectionPoint.y - 1, 2, 2);\r
-               }\r
+               component.render(new TranslatedGC(gc, componentPositions.get(component)));\r
        }\r
        private void mouseDown(Event e)\r
        {\r