X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fmodel%2Fwires%2FWireCrossPoint.java;fp=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fmodel%2Fwires%2FWireCrossPoint.java;h=73d98f53ba1d384cb150b12c7139f08ee06b7d73;hb=73c2a2608cc57cbe1ddb8e99a944fd18216ffd34;hp=c54cdd9b73f5c480b743152916f02331526be4d9;hpb=ff64c7030e7b7b93cbe974eaf788444063e1aa72;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 c54cdd9b..73d98f53 100644 --- a/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java +++ b/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java @@ -11,10 +11,12 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; public class WireCrossPoint extends GUIComponent { private ReadEnd end; + private final int logicWidth; public WireCrossPoint(ViewModel model, int logicWidth) { super(model); + this.logicWidth = logicWidth; setSize(0, 0); addPin(new Pin(this, logicWidth, 0, 0)); } @@ -30,4 +32,9 @@ public class WireCrossPoint extends GUIComponent this.end = end; end.addObserver((i, o) -> callComponentLookChangedListeners()); } + + public int getLogicWidth() + { + return logicWidth; + } } \ No newline at end of file