Basic HTML version of Foils prepared May 19 99

Foil 12 Drawing Process

From Java Media Framework API's Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Byeongseob Ki, Scott Klasky, Nancy McCracken


1 The basic drawing process:
  • 1. Specify the rendering attribute for the shape you want to draw and invoke a method such as setColor(...)
  • 2. Define the shape you want to draw
  • 3. Use the Graphics object to render the shape by calling a rendering method such as fillRect(...)
2 Java 2D provides additional features for:
  • specifying paint styles
  • defining complex shapes
  • controlling the rendering process

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 Mon Jul 5 1999