Basic HTML version of Foils prepared July 6 99

Foil 40 Graphics Methods

From Use of Java Language in Computational Science DoD Modernization Users Group Conference Monterey -- June 7 99. by Nancy McCracken, Geoffrey C. Fox


There are graphics methods to draw lines, arcs, ovals, rectangles and other shapes. Here is one method:
The drawRect(...) method draws a rectangle anchored at point (x,y): public void drawRect( int x, int y, int w, int h );
For example, this can be used to draw histograms.
(x,y)
w
h



© 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 Tue Jul 6 1999