File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to turn the text vertical in graphics?

 
Shashi Bhushan N
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was just using
g.drawString("N.SHASHIBHUSHAN",50,50);
and thought of displaying my name vertically
N
.
S
H
A
S
H
I
B
H
U
S
H
A
N
!!!@#$%!!!
But how do i do it in the applet???
Thankyou and regards.
 
Shashi Bhushan N
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any facility in FontMetrics or Font or Swing.text to turn my text vertical??
 
David Gilbert
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the method I use in JFreeChart to draw vertical labels for axes:

Regards,
Dave Gilbert
JFreeChart Project Leader
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic