AffineTransform ot = g.getTransform();\r
g.transform(transform);\r
\r
- if (horizontalAlignment == Alignment.CENTER.ordinal()) {\r
- // FIXME: Font.getStringBounds is expensive. Optimize so that it is only executed when the text changes.\r
- Rectangle2D stringBounds = font.getStringBounds(text, g.getFontRenderContext());\r
- g.translate(- stringBounds.getWidth() / 2 * scale, 0);\r
- }\r
-\r
boolean selected = NodeUtil.isSelected(this, 1);\r
if (!selected && hover){\r
BasicStroke oldStroke = (BasicStroke)g.getStroke();\r