From d3d60a4fa4ffd989ed240525bedd11e0b6975725 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Wed, 29 May 2019 16:24:27 +0200 Subject: [PATCH 1/1] Added getter for logicWidth in WireCrossPoint --- LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.17.1