X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fmodel%2Fwires%2FWireCrossPoint.java;h=724de54bd96ce49804e56112c6a2e4869a9de759;hb=bedef06cf9b3fdd815dd8cf8925aeb159381d59d;hp=73d98f53ba1d384cb150b12c7139f08ee06b7d73;hpb=60ad0ce18eb366fa22e34cdd7dff87055e43c789;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java b/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java index 73d98f53..724de54b 100644 --- a/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java +++ b/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java @@ -10,6 +10,8 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; public class WireCrossPoint extends GUIComponent { + private final Pin pin; + private ReadEnd end; private final int logicWidth; @@ -18,7 +20,7 @@ public class WireCrossPoint extends GUIComponent super(model); this.logicWidth = logicWidth; setSize(0, 0); - addPin(new Pin(this, logicWidth, 0, 0)); + addPin(this.pin = new Pin(this, logicWidth, 0, 0)); } @Override @@ -37,4 +39,9 @@ public class WireCrossPoint extends GUIComponent { return logicWidth; } + + public Pin getPin() + { + return pin; + } } \ No newline at end of file