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


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

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