Basic HTML version of Foils prepared 13 July 98

Foil 46 The Drawable Interface

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

The Drawable Interface
The Drawable interface defines six methods: interface Drawable { public Color getColor(); public void setColor( Color color ); public void draw( Graphics g ); public void draw( Component c ); public void fill( Graphics g ); public void fill( Component c ); }
Notice the two forms of draw(...) and fill(...)



© 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