import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
import net.mograsim.logic.model.model.components.GUIComponent;
import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
import net.mograsim.logic.model.model.components.GUIComponent;
import net.mograsim.logic.model.snippets.Renderer;
import net.mograsim.logic.model.snippets.SnippetDefinintion;
import net.mograsim.logic.model.snippets.SubmodelComponentSnippetSuppliers;
import net.mograsim.logic.model.snippets.Renderer;
import net.mograsim.logic.model.snippets.SnippetDefinintion;
import net.mograsim.logic.model.snippets.SubmodelComponentSnippetSuppliers;
public void render(GeneralGC gc, Rectangle visibleRegion)
{
Font oldFont = gc.getFont();
public void render(GeneralGC gc, Rectangle visibleRegion)
{
Font oldFont = gc.getFont();
ColorDefinition fg = Preferences.current().getColorDefinition("net.mograsim.logic.model.color.text");
if (fg != null)
gc.setForeground(ColorManager.current().toColor(fg));
ColorDefinition fg = Preferences.current().getColorDefinition("net.mograsim.logic.model.color.text");
if (fg != null)
gc.setForeground(ColorManager.current().toColor(fg));
- gc.drawText(params.text, bounds.x + (bounds.width - idSize.x) / 2, bounds.y + (bounds.height - idSize.y) / 2, true);
+ gc.drawText(text, bounds.x + (bounds.width - idSize.x) / 2, bounds.y + (bounds.height - idSize.y) / 2, true);