Back to index

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

List of all members.

Package Functions

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

Package Attributes

Canvas c = create(100,200,new Blue())
Canvas d = create(200,100,new Red())
boolean tst = d.close()
String result = "the blue canvas is visible; the green 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 23 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 Example2.c = create(100,200,new Blue()) [package]

Definition at line 24 of file

Canvas Example2.d = create(200,100,new Red()) [package]

Definition at line 25 of file

String Example2.result = "the blue canvas is visible; the green one has disappeared" [package]

Reimplemented from Example.

Definition at line 29 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 Example2.tst = d.close() [package]

Definition at line 27 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: