~vijaykumar

Apr 2008

[ Home | Feed | Twitter | Vector Art | Ascii Art | Tutorials ]

Java Tip: Drawing a TextLayout

Tue, 01 Apr 2008

TextLayout objects among other things can be used to draw styled character data. The draw() method of the object can be used to draw the rendered text to a Graphics2D object. But the x and y co-ordinates passed to draw() is not the position of the top left corner as would be expected. The x and y coordinate is the position of the origin.

Read Full Story ...

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: java

Powered by Python | Made with PyBlosxom | Valid XHTML 1.1 | Best Viewed With Any Browser | Icon Credits | CC-BY-SA