Basic HTML version of Foils prepared 13 July 98

Foil 7 A Subclass of Font

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

The java.awt.Font Class
As a subclass of Font, the DrawableString class inherits:
  • variables: name, style, size
  • methods: getName(), getStyle(), getSize()
For convenience, DrawableString provides:
  • methods: setFontName(...), setFontStyle(...), setFontSize(...)
  • (Why doesn't the Font class provide these?)



© 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