Back to index

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

List of all members.

Package Functions

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

Package Attributes

SW sw1 = new SW(10,40,new Red())
SW sw2 = new SW(10,90,new Green())
boolean tst1 = sw1.go()
boolean tst2 = sw2.go()
String result = "two worlds, green goes to bottom, red goes to center"
SW sw = new SW(10)

Detailed Description

Definition at line 5 of file

Member Function Documentation

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

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

String Example.result = "two worlds, green goes to bottom, red goes to center" [package]

Reimplemented in Example3, Example2, and Example1.

Definition at line 35 of file

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

Definition at line 37 of file

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

Definition at line 31 of file

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

Definition at line 32 of file

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

Definition at line 33 of file

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

Reimplemented in Example3.

Definition at line 34 of file

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