X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fmi%2Fnandbased%2FGUIdemux2.java;h=172ca3a7cea4926a88095423bd8c5f5df32ef06a;hb=e1db47ab3504bbfe8543c9a986d2a89d001ff650;hp=2924c1a517a8382a6265ccb1a741a1e63f0daff7;hpb=36973a525e0e5a3377992ee99f1c0e3908f3dd18;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdemux2.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdemux2.java index 2924c1a5..172ca3a7 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdemux2.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdemux2.java @@ -14,8 +14,8 @@ public class GUIdemux2 extends SimpleRectangularSubmodelComponent { super(model, 1, "GUIdemux2"); setSubmodelScale(.4); - setInputCount(2); - setOutputCount(4); + setInputPins("S0", "S1"); + setOutputPins("Y00", "Y01", "Y10", "Y11"); initSubmodelComponents(); } @@ -51,14 +51,14 @@ public class GUIdemux2 extends SimpleRectangularSubmodelComponent andY01.moveTo(40, 27.5); andY10.moveTo(40, 52.5); andY11.moveTo(40, 77.5); - cpS01.moveTo(7.5, 12.5); - cpS11.moveTo(5, 37.5); - cpS02.moveTo(7.5, 17.5); - cpS12.moveTo(5, 42.5); - cpS03.moveTo(37.5, 62.5); - cpS13.moveTo(32.5, 67.5); - cpNotS0.moveTo(32.5, 12.5); - cpNotS1.moveTo(35, 37.5); + cpS01.moveCenterTo(7.5, 12.5); + cpS11.moveCenterTo(5, 37.5); + cpS02.moveCenterTo(7.5, 17.5); + cpS12.moveCenterTo(5, 42.5); + cpS03.moveCenterTo(37.5, 62.5); + cpS13.moveCenterTo(32.5, 67.5); + cpNotS0.moveCenterTo(32.5, 12.5); + cpNotS1.moveCenterTo(35, 37.5); new GUIWire(submodelModifiable, S0, cpS01, new Point[0]); new GUIWire(submodelModifiable, S1, cpS11, new Point[0]);