SimpleRectangularSubmodelComponent now supports pin names
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUInand3.java
index 0b0a3b5..10ee1e2 100644 (file)
@@ -14,8 +14,8 @@ public class GUInand3 extends SimpleRectangularSubmodelComponent
        {
                super(model, 1, "GUInand3");
                setSubmodelScale(.4);
-               setInputCount(3);
-               setOutputCount(1);
+               setInputPins("A", "B", "C");
+               setOutputPins("Y");
                initSubmodelComponents();
        }
 
@@ -36,7 +36,7 @@ public class GUInand3 extends SimpleRectangularSubmodelComponent
                nandAB.moveTo(10, 15);
                andAB.moveTo(35, 15);
                nandABC.moveTo(62.5, 2.5);
-               cpNandAB.moveTo(32.5, 25);
+               cpNandAB.moveCenterTo(32.5, 25);
 
                new GUIWire(submodelModifiable, A, nandAB.getInputPins().get(0));
                new GUIWire(submodelModifiable, B, nandAB.getInputPins().get(1));