X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fcomponents%2Fgui%2FGUIMux.java;h=df61ca777bdd181bb3f79dc382a34b27d8c00218;hb=0cfea6ef89dea8a797708ff685aa2ef9aefd85b9;hp=42973cadfe2219a31de59ab6acb196628df8e7af;hpb=876c192e726cde66adcb4453ebcfc15ab3f8af63;p=Mograsim.git diff --git a/LogicUI/src/era/mi/components/gui/GUIMux.java b/LogicUI/src/era/mi/components/gui/GUIMux.java index 42973cad..df61ca77 100644 --- a/LogicUI/src/era/mi/components/gui/GUIMux.java +++ b/LogicUI/src/era/mi/components/gui/GUIMux.java @@ -9,6 +9,7 @@ import era.mi.logic.components.Mux; import era.mi.logic.wires.WireArray; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.swtobjectwrappers.Point; +import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; public class GUIMux extends Mux implements BasicGUIComponent { @@ -45,6 +46,12 @@ public class GUIMux extends Mux implements BasicGUIComponent this.connectedWireArrays = Collections.unmodifiableList(connectedWireArraysModifiable); this.wireArrayConnectionPoints = Collections.unmodifiableList(wireArrayConnectionPointsModifiable); } + + @Override + public Rectangle getBounds() + { + return new Rectangle(0, 0, 20, height + 20); + } @Override public void render(GeneralGC gc) {