Back to index

plt-scheme  4.2.1
Package Functions | Package Attributes
Example3 Class Reference
Inheritance diagram for Example3:
Inheritance graph
[legend]
Collaboration diagram for Example3:
Collaboration graph
[legend]

List of all members.

Package Functions

Canvas create (int w, int h, Color bg)

Package Attributes

Canvas c = create(100,100,new Green())
String sc = "a green 100 x 100 canvas pops up"
Canvas d = create(200,200,new Black())
String sd = "a black 200 x 200 canvas pops up"
boolean tst = c.close()
String st = "the green screen has disappeared"
boolean tst2 = c.show()
String result = "the black canvas is visible; a second white one (of 100 x 100) is visible"
SW sw1 = new SW(10,40,new Red())
SW sw2 = new SW(10,90,new Green())
boolean tst1 = sw1.go()
SW sw = new SW(10)

Detailed Description

Definition at line 32 of file draw-multiple-canvas.java.


Member Function Documentation

Canvas Example.create ( int  w,
int  h,
Color  bg 
) [inline, package, inherited]

Definition at line 6 of file draw-multiple-canvas.java.

                                       { 
   Canvas c = new Canvas(w,h);
   boolean tstC = c.show();
   boolean tstCDraw = c.drawRect(new Posn(0,0),w,h,bg);
   return c; 
 }

Member Data Documentation

Canvas Example3.c = create(100,100,new Green()) [package]

Definition at line 33 of file draw-multiple-canvas.java.

Canvas Example3.d = create(200,200,new Black()) [package]

Definition at line 36 of file draw-multiple-canvas.java.

String Example3.result = "the black canvas is visible; a second white one (of 100 x 100) is visible" [package]

Reimplemented from Example.

Definition at line 42 of file draw-multiple-canvas.java.

String Example3.sc = "a green 100 x 100 canvas pops up" [package]

Definition at line 34 of file draw-multiple-canvas.java.

String Example3.sd = "a black 200 x 200 canvas pops up" [package]

Definition at line 37 of file draw-multiple-canvas.java.

String Example3.st = "the green screen has disappeared" [package]

Definition at line 40 of file draw-multiple-canvas.java.

SW Example.sw = new SW(10) [package, inherited]

Definition at line 37 of file draw-world-close-canvas.java.

SW Example.sw1 = new SW(10,40,new Red()) [package, inherited]

Definition at line 31 of file draw-multiple-worlds.java.

SW Example.sw2 = new SW(10,90,new Green()) [package, inherited]

Definition at line 32 of file draw-multiple-worlds.java.

boolean Example3.tst = c.close() [package]

Definition at line 39 of file draw-multiple-canvas.java.

boolean Example.tst1 = sw1.go() [package, inherited]

Definition at line 33 of file draw-multiple-worlds.java.

boolean Example3.tst2 = c.show() [package]

Reimplemented from Example.

Definition at line 41 of file draw-multiple-canvas.java.


The documentation for this class was generated from the following file: