X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fatomic%2FGUINotGate.java;h=fdab22cd592d7d0b90e89a57561051cd6ba3be6e;hb=5ece0acf049bf9af2933f513fe0206565681f622;hp=6f1acd4b46e85eed00edc29a98b2334c680579bf;hpb=05f3deb7ee3a0b7162c75e1963be9a739618e3df;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUINotGate.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUINotGate.java index 6f1acd4b..fdab22cd 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUINotGate.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUINotGate.java @@ -10,13 +10,19 @@ public class GUINotGate extends SimpleRectangularGUIGate { public GUINotGate(ViewModelModifiable model, int logicWidth) { - super(model, logicWidth, "1", true); + this(model, logicWidth, null); + } + + public GUINotGate(ViewModelModifiable model, int logicWidth, String name) + { + super(model, "1", true, logicWidth, name); setInputCount(1); } static { ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUINotGate.class, (t, p, o, i) -> new NotGate(t, p, i[0], o))); - IndirectGUIComponentCreator.setComponentSupplier(GUINotGate.class.getCanonicalName(), (m, p) -> new GUINotGate(m, p.getAsInt())); + IndirectGUIComponentCreator.setComponentSupplier(GUINotGate.class.getCanonicalName(), + (m, p, n) -> new GUINotGate(m, p.getAsInt(), n)); } } \ No newline at end of file