Back to index

plt-scheme  4.2.1
Package Functions | Package Attributes
Example1 Class Reference
Inheritance diagram for Example1:
Inheritance graph
Collaboration diagram for Example1:
Collaboration graph

List of all members.

Package Functions

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

Package Attributes

Canvas c = create(100,200,new Black())
Canvas d = create(200,100,new White())
boolean tst = c.close()
String result = "the white 200 x 100 canvas is visible; the black one has disappeared"
SW sw1 = new SW(10,40,new Red())
SW sw2 = new SW(10,90,new Green())
boolean tst1 = sw1.go()
boolean tst2 = sw2.go()
SW sw = new SW(10)

Detailed Description

Definition at line 14 of file

Member Function Documentation

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

Definition at line 6 of file

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

Member Data Documentation

Canvas Example1.c = create(100,200,new Black()) [package]

Definition at line 15 of file

Canvas Example1.d = create(200,100,new White()) [package]

Definition at line 16 of file

String Example1.result = "the white 200 x 100 canvas is visible; the black one has disappeared" [package]

Reimplemented from Example.

Definition at line 20 of file

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

Definition at line 37 of file

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

Definition at line 31 of file

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

Definition at line 32 of file

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

Definition at line 18 of file

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

Definition at line 33 of file

boolean Example.tst2 = sw2.go() [package, inherited]

Reimplemented in Example3.

Definition at line 34 of file

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