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