![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e592. Drawing Rotated Text// Draw string rotated clockwise 90 degrees AffineTransform at = new AffineTransform(); at.setToRotation(Math.PI/2.0); g2d.setTransform(at); g2d.drawString("aString", x, y); // Draw string rotated counter-clockwise 90 degrees at = new AffineTransform(); at.setToRotation(-Math.PI/2.0); g2d.setTransform(at); g2d.drawString("aString", x, y);
e593. Getting the Dimensions of Text
© 2002 Addison-Wesley. |