X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fmi%2Fnandbased%2FGUIdff.java;h=33419069f5ef6e0d925802a1397dc7347a82d19d;hb=20aa3391efe7ae7d99861741f8b5594f88eae1d9;hp=ce4f4416c96f8fbaf2972c71f04305d038f53694;hpb=95177b52dc8e5d3364853a91388d46606bacc120;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java index ce4f4416..33419069 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java @@ -14,8 +14,8 @@ public class GUIdff extends SimpleRectangularSubmodelComponent { super(model, 1, "GUIdff"); setSubmodelScale(.2); - setInputCount(2); - setOutputCount(2); + setInputPins("C", "D"); + setOutputPins("Q", "_Q"); initSubmodelComponents(); } @@ -41,10 +41,10 @@ public class GUIdff extends SimpleRectangularSubmodelComponent nand3.moveTo(40, 40); nand2.moveTo(120, 60); _rsLatch2.moveTo(120, 30); - cp1.moveTo(10, 25); - cp2.moveTo(20, 65); - cp3.moveTo(100, 35); - cp4.moveTo(100, 45); + cp1.moveCenterTo(10, 25); + cp2.moveCenterTo(20, 65); + cp3.moveCenterTo(100, 35); + cp4.moveCenterTo(100, 45); new GUIWire(submodelModifiable, C, cp1, new Point[0]); new GUIWire(submodelModifiable, cp1, _rsLatch1.getInputPins().get(1), new Point[0]);