Added getter for logicWidth in WireCrossPoint
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 29 May 2019 14:24:27 +0000 (16:24 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 29 May 2019 14:24:27 +0000 (16:24 +0200)
LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java

index c54cdd9..73d98f5 100644 (file)
@@ -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