X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2FLogicUI.java;h=50e8f96ddb042b46c20a293439fa67eb0a7ed6bf;hb=91e65d59e3efdba41ce4b333d0aea082e06ea912;hp=501f1933dc5f8c5273ee2263debcdf789e5297af;hpb=26d5c3c4b6fa4d85f4aba3552a69da9c9c832d7f;p=Mograsim.git diff --git a/LogicUI/src/LogicUI.java b/LogicUI/src/LogicUI.java index 501f1933..50e8f96d 100644 --- a/LogicUI/src/LogicUI.java +++ b/LogicUI/src/LogicUI.java @@ -11,10 +11,10 @@ import org.eclipse.swt.widgets.Shell; import era.mi.components.gui.BasicGUIComponent; import era.mi.components.gui.GUIMerger; import era.mi.components.gui.GUIMux; +import era.mi.components.gui.GUINotGate; import era.mi.components.gui.GUISplitter; import era.mi.logic.Simulation; import era.mi.logic.components.gates.AndGate; -import era.mi.logic.components.gates.NotGate; import era.mi.logic.wires.WireArray; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.gcs.TranslatedGC; @@ -51,7 +51,7 @@ public class LogicUI WireArray a = new WireArray(1, 1), b = new WireArray(1, 1), c = new WireArray(1, 10), d = new WireArray(2, 1), e = new WireArray(1, 1), f = new WireArray(1, 1), g = new WireArray(1, 1), h = new WireArray(2, 1), i = new WireArray(2, 1), j = new WireArray(1, 1), k = new WireArray(1, 1); new AndGate(1, f, a, b); - new NotGate(1, f, g); + addComponent(new GUINotGate(1, f, g), 100, 10); addComponent(new GUIMerger(h, c, g), 70, 10); addComponent(new GUIMux(1, i, e, h, d), 10, 10); addComponent(new GUISplitter(i, k, j), 40, 10); @@ -70,7 +70,7 @@ public class LogicUI { Point connectionPoint = component.getWireArrayConnectionPoint(i); if(connectionPoint != null) - tgc.fillOval(connectionPoint.x - 2, connectionPoint.y - 2, 4, 4); + tgc.fillOval(connectionPoint.x - 1, connectionPoint.y - 1, 2, 2); } } public void run()