Basic HTML version of Foils prepared April 7 1998

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

From Overview of Java2D and Java3D Frameworks CPS616 Web Technologies -- Spring 98. by Geoffrey C. Fox


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 Sun May 3 1998