Hardcoded a wire path in GUImux1
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 5 Jun 2019 17:33:09 +0000 (19:33 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 5 Jun 2019 17:33:27 +0000 (19:33 +0200)
net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java

index 9ff84c0..0f5e345 100644 (file)
@@ -5,7 +5,7 @@ import net.mograsim.logic.ui.model.ViewModelModifiable;
 import net.mograsim.logic.ui.model.components.GUIBitDisplay;
 import net.mograsim.logic.ui.model.components.GUIManualSwitch;
 import net.mograsim.logic.ui.model.components.SimpleRectangularSubmodelComponent;
-import net.mograsim.logic.ui.model.components.mi.nandbased.GUInot4;
+import net.mograsim.logic.ui.model.components.mi.nandbased.GUImux1;
 import net.mograsim.logic.ui.model.wires.GUIWire;
 
 public class SubmodelComponentTestbench
@@ -18,7 +18,7 @@ public class SubmodelComponentTestbench
        @SuppressWarnings("unused") // for GUIWires being created
        public static void createTestbench(ViewModelModifiable model)
        {
-               SimpleRectangularSubmodelComponent comp = new GUInot4(model);
+               SimpleRectangularSubmodelComponent comp = new GUImux1(model);
 
                comp.moveTo(100, 0);
                for (int i = 0; i < comp.getInputPins().size(); i++)
index 056b696..14a612b 100644 (file)
@@ -52,8 +52,7 @@ public class GUImux1 extends SimpleRectangularSubmodelComponent
                new GUIWire(submodelModifiable, nandS0.getOutputPin(), nandI0.getInputPins().get(0));
                new GUIWire(submodelModifiable, I0, nandI0.getInputPins().get(1), new Point[0]);
 
-               new GUIWire(submodelModifiable, cp1, nandI1.getInputPins().get(0),
-                               new Point(cp1.getPin().getPos().x, nandI1.getInputPins().get(0).getPos().y));
+               new GUIWire(submodelModifiable, cp1, nandI1.getInputPins().get(0), new Point(5, 52));
                new GUIWire(submodelModifiable, I1, nandI1.getInputPins().get(1), new Point[0]);
 
                new GUIWire(submodelModifiable, nandI0.getOutputPin(), nandY.getInputPins().get(0));