double scale = 1.5 / g.getTransform().getScaleX();
g.scale(scale, scale);
+ int width1 = g.getFontMetrics().stringWidth(info);
+ int height = g.getFontMetrics().getHeight();
+
+ g.setColor(Color.WHITE);
+ g.fillRect(-width1/2 - 5, -2, width1, height);
+
g.setFont(FONT);
g.setColor(Color.BLACK);
g.transform(AffineTransform.getRotateInstance(direction.getX(), direction.getY()));
g.translate(0, 10);
- int width1 = g.getFontMetrics().stringWidth(info);
g.drawString(info, -width1/2, 0);
}