# 1. Text Beispiel, Transition

Graphics2D g2d = (Graphics2D)g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
AffineTransform at = new AffineTransform();
int x=50;
int y=100;
at.setToRotation( Math.toRadians(-90), x,y ); // theta x y
g2d.setTransform(at);
g2d.drawString("Name", x,y);

Graphics2D g2d = (Graphics2D)g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
AffineTransform at = new AffineTransform();
int x=50;
int y=100;
at.setToRotation( Math.toRadians(-90), x,y ); // theta x y
g2d.setTransform(at);
g2d.drawString("Name", x,y);