X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fwires%2FPin.java;h=9be080036013463e99cdd0973c641eddc688be08;hb=7aa6eab72deba89dbc22ae9c90ffb5df53f9d496;hp=f8325a098fbe05ae15703a538572f5dafb8a9338;hpb=fdb090ca9a42f72119b0332f8157aa7d14119ef6;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/Pin.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/Pin.java index f8325a09..9be08003 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/Pin.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/Pin.java @@ -8,10 +8,10 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Point; import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; import net.mograsim.logic.ui.model.components.GUIComponent; -//TODO add an ID and/or a name public class Pin { public final GUIComponent component; + public final String name; public final int logicWidth; protected double relX; @@ -20,9 +20,10 @@ public class Pin private final List> pinMovedListeners; private final List redrawListeners; - public Pin(GUIComponent component, int logicWidth, double relX, double relY) + public Pin(GUIComponent component, String name, int logicWidth, double relX, double relY) { this.component = component; + this.name = name; this.logicWidth = logicWidth; this.relX = relX; this.relY = relY;