Basic HTML version of Foils prepared Sept 21 1998
Foil 16 The Class Hierarchy of this example
From Java Tutorial 98- 3: Graphics and the Abstract Windowing Toolkit NAVO Tutorial -- Sept 23 1998. by Geoffrey C. Fox, Nancy McCracken
1 |
Applet
|
2 |
mRectApplet
|
3 |
variables:
|
4 |
mPoint object[ ]
|
5 |
methods:
|
6 |
init
|
7 |
run
|
8 |
start
|
9 |
stop
|
10 |
update
|
11 |
paint
|
12 |
mPoint
|
13 |
variables:
|
14 |
int x, y, dx, dy
|
15 |
Color color
|
16 |
methods:
|
17 |
setDelta
|
18 |
setColor . . .
|
19 |
move
|
20 |
paint
|
21 |
mRectangle
|
22 |
int w, h
|
23 |
paint
|
24 |
checkBoundary . . .
|
25 |
mOval
|
26 |
paint
|
27 |
mTriangle
|
28 |
paint
|
29 |
uses
|
© 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 Sat Nov 28 1998