SimpleRectangularSubmodelComponent now supports pin names
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUIand.java
index 35c47b0..cb7f6b6 100644 (file)
@@ -14,8 +14,8 @@ public class GUIand extends SimpleRectangularSubmodelComponent
        {
                super(model, 1, "GUIand");
                setSubmodelScale(.4);
-               setInputCount(2);
-               setOutputCount(1);
+               setInputPins("A", "B");
+               setOutputPins("Y");
                initSubmodelComponents();
        }
 
@@ -33,7 +33,7 @@ public class GUIand extends SimpleRectangularSubmodelComponent
 
                nand.moveTo(20, 15);
                not.moveTo(50, 15);
-               cp1.moveTo(45, 25);
+               cp1.moveCenterTo(45, 25);
 
                new GUIWire(submodelModifiable, A, nand.getInputPins().get(0));
                new GUIWire(submodelModifiable, B, nand.getInputPins().get(1));