X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fcomponents%2Fgui%2FGUIAndGate.java;h=93429e8488e488f7580505a2df1ac5b7d469ab03;hb=a923135e79725ab79434f5c53f3fdf63e990a8af;hp=92bc86ede1f8bc54bd580ff6f21c08d9419377b6;hpb=c88be3fe785d0b1f9adcae3d9be3606e6982728d;p=Mograsim.git diff --git a/LogicUI/src/era/mi/components/gui/GUIAndGate.java b/LogicUI/src/era/mi/components/gui/GUIAndGate.java index 92bc86ed..93429e84 100644 --- a/LogicUI/src/era/mi/components/gui/GUIAndGate.java +++ b/LogicUI/src/era/mi/components/gui/GUIAndGate.java @@ -10,6 +10,7 @@ import era.mi.logic.wires.WireArray; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.swtobjectwrappers.Font; import net.haspamelodica.swt.helper.swtobjectwrappers.Point; +import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; public class GUIAndGate extends AndGate implements BasicGUIComponent { @@ -44,6 +45,11 @@ public class GUIAndGate extends AndGate implements BasicGUIComponent this.wireArrayConnectionPoints = Collections.unmodifiableList(wireArrayConnectionPointsModifiable); } + @Override + public Rectangle getBounds() + { + return new Rectangle(0, 0, 20, height); + } @Override public void render(GeneralGC gc) {