X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fmi%2Fnandbased%2FGUImux1.java;h=14a612b2dbc283be4b389b0d3b9a47005d0d2f59;hb=578d3762ffbce21993064320741eb14d311a17b6;hp=3bd6d2378eb4b298484d6940497011e68d70469f;hpb=f40b28d1f2fa95edd673fbd87487bfeaba1e4bce;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java index 3bd6d237..14a612b2 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java @@ -15,7 +15,6 @@ public class GUImux1 extends SimpleRectangularSubmodelComponent super(model, 1, "GUImux1"); setSize(80, 40); setSubmodelScale(.4); - setInputCount(3); setOutputCount(1); initSubmodelComponents(); @@ -45,17 +44,16 @@ public class GUImux1 extends SimpleRectangularSubmodelComponent cp0.moveTo(5, 12.5); cp1.moveTo(5, 22.5); - new GUIWire(submodelModifiable, S0, cp0); - new GUIWire(submodelModifiable, cp0, nandS0.getInputPins().get(0)); - new GUIWire(submodelModifiable, cp0, cp1); - new GUIWire(submodelModifiable, cp1, nandS0.getInputPins().get(1)); + new GUIWire(submodelModifiable, S0, cp0, new Point[0]); + new GUIWire(submodelModifiable, cp0, nandS0.getInputPins().get(0), new Point[0]); + new GUIWire(submodelModifiable, cp0, cp1, new Point[0]); + new GUIWire(submodelModifiable, cp1, nandS0.getInputPins().get(1), new Point[0]); new GUIWire(submodelModifiable, nandS0.getOutputPin(), nandI0.getInputPins().get(0)); - new GUIWire(submodelModifiable, I0, nandI0.getInputPins().get(1)); + 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, I1, nandI1.getInputPins().get(1)); + 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)); new GUIWire(submodelModifiable, nandI1.getOutputPin(), nandY.getInputPins().get(1));