Basic HTML version of Foils prepared 13 July 98

Foil 10 The drawString Method

From Java Academy II:Intermediate Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

The java.awt.Graphics.drawString Method
1 The drawString(...) method of the Graphics class draws a string at (x,y): public void drawString( String s, int x, int y );
2 The anchor point (x,y) is the left-hand endpoint of the string's baseline
3 Note: the top left-hand corner of the string's bounding box is at point (x, y - ascent)

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998