• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

have to draw String at different angle

 
aayushpatel
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me how can i draw string at different angle..
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that feature only works in certain configurations (at least for arbitrary angles), but it's been too long to remember the details (which may not be true anymore).
Actually, the best place to ask in in the AWT/JFC/Swing forum - they're more oriented to the graphics aspect of applets as opposed to the client/server questions that get covered here.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aayushpatel,
Look in the Graphics2D and AffineTransform classes in your javadocs. Graphics2D has several drawString() methods. Of course you can set the Font, background color, etc. ont Graphics2D context as well as setting the AffineTransform with setTransform() which will accomplish your rotation.
Hope this helps
Michael Morris
SCJP2
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Take a look at this:http://www.subrahmanyam.com/javaapps/rotate/RotateTextDemo.html
Regarding your user name, you should re-register because your is not valid here at the ranch. Read the naming policy here and then re-register with a valid user name (i.e., first name + space + last name).
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic