Basic HTML version of Foils prepared May 19 99

Foil 15 Using Java 2D API (cont'd)

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


1 To simplify the creation of standard shapes such as rectangles, Java 2D provides several subclasses of Shape in addition to GeneralPath:
2
3
4
5 In addition to supporting solid color fills, Java 2D enables you to specify complex fills such as gradients and patterns
6 Rectangle2D.Double rect = new Rectangle2D.Double( 300, 300, 200, 100 );

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