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 GUINotGate extends NotGate implements BasicGUIComponent
{
this.wireArrayConnectionPoints = Collections.unmodifiableList(wireArrayConnectionPointsModifiable);
}
+ @Override
+ public Rectangle getBounds()
+ {
+ return new Rectangle(0, 0, 20, 10);
+ }
@Override
public void render(GeneralGC gc)
{
Font labelFont = new Font(oldFont.getName(), 5, oldFont.getStyle());
gc.setFont(labelFont);
Point textExtent = gc.textExtent(LABEL);
- gc.drawText(LABEL, 10 - textExtent.x / 2, 5 - textExtent.y / 2, true);
+ gc.drawText(LABEL, 8.5 - textExtent.x / 2, 5 - textExtent.y / 2, true);
gc.setFont(oldFont);
gc.drawOval(17, 3.5, 3, 3);
}