From: Daniel Kirschten Date: Wed, 29 May 2019 14:24:27 +0000 (+0200) Subject: Added getter for logicWidth in WireCrossPoint X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=73c2a2608cc57cbe1ddb8e99a944fd18216ffd34;p=Mograsim.git Added getter for logicWidth in WireCrossPoint --- 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