X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.am2900%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2Fcomponents%2FGUIdff12.java;h=b4cfb897047f696d951196785f8f8a5dc2042104;hb=bbe38c55aaa999d025f534245f9207a88643f6e5;hp=5dd2f961122a899677576800025804b860fa2253;hpb=c9cca272f312bdea6cf661e861508fca2431a9d2;p=Mograsim.git diff --git a/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIdff12.java b/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIdff12.java index 5dd2f961..b4cfb897 100644 --- a/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIdff12.java +++ b/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIdff12.java @@ -13,6 +13,7 @@ import net.mograsim.logic.core.wires.Wire.ReadWriteEnd; import net.mograsim.logic.model.model.ViewModelModifiable; import net.mograsim.logic.model.model.components.atomic.SimpleRectangularHardcodedGUIComponent; import net.mograsim.logic.model.model.wires.Pin; +import net.mograsim.logic.model.model.wires.PinUsage; import net.mograsim.logic.model.serializing.IndirectGUIComponentCreator; import net.mograsim.logic.model.snippets.symbolrenderers.PinNamesSymbolRenderer.PinNamesParams.Position; @@ -22,9 +23,9 @@ public class GUIdff12 extends SimpleRectangularHardcodedGUIComponent { super(model, name, "D flip flop\n12 bits"); setSize(40, 20); - addPin(new Pin(this, "D", 12, 20, 20), Usage.INPUT, Position.TOP); - addPin(new Pin(this, "C", 1, 0, 10), Usage.INPUT, Position.RIGHT); - addPin(new Pin(this, "Y", 12, 20, 0), Usage.OUTPUT, Position.BOTTOM); + addPin(new Pin(this, "D", 12, PinUsage.INPUT, 20, 20), Position.TOP); + addPin(new Pin(this, "C", 1, PinUsage.INPUT, 0, 10), Position.RIGHT); + addPin(new Pin(this, "Y", 12, PinUsage.OUTPUT, 20, 0), Position.BOTTOM); } @Override