Commented GUIWire
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / GUINotGate.java
1 package net.mograsim.logic.ui.model.components;
2
3 import net.mograsim.logic.core.components.gates.NotGate;
4 import net.mograsim.logic.ui.model.ViewModelModifiable;
5 import net.mograsim.logic.ui.modeladapter.ViewLogicModelAdapter;
6 import net.mograsim.logic.ui.modeladapter.componentadapters.SimpleGateAdapter;
7
8 public class GUINotGate extends SimpleRectangularGUIGate
9 {
10         public GUINotGate(ViewModelModifiable model, int logicWidth)
11         {
12                 super(model, logicWidth, "1", true);
13                 setInputCount(1);
14         }
15
16         static
17         {
18                 ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUINotGate.class, (t, p, o, i) -> new NotGate(t, p, i[0], o)));
19         }
20 }