Color textColor = Preferences.current().getColor("net.mograsim.logic.ui.color.text");\r
if (textColor != null)\r
gc.setForeground(textColor);\r
- gc.drawText(text, getPosX() - textExtent.x / 2, getPosY() - textExtent.y / 2, true);\r
+ gc.drawText(text, getPosX(), getPosY(), true);\r
}\r
\r
@Override\r
{\r
if (textExtent == null)\r
return super.getBounds();\r
- return new Rectangle(getPosX() - textExtent.x / 2, getPosY() - textExtent.y / 2, textExtent.x, textExtent.y);\r
+ return new Rectangle(getPosX(), getPosY(), textExtent.x, textExtent.y);\r
}\r
\r
static\r