Back to index

plt-scheme  4.2.1
Public Member Functions | Protected Member Functions | Private Attributes
idraw.Canvas Class Reference

List of all members.

Public Member Functions

 Canvas (int width, int height)
void show ()
void close ()
native void xshow ()
native void xclose ()
native void drawCircle (Posn p, int r, IColor c)
native void drawDisk (Posn p, int r, IColor c)
native void drawRect (Posn p, int width, int height, IColor c)
native void drawLine (Posn p0, Posn p1, IColor c)
native void drawString (Posn p, String s)

Protected Member Functions

native void copy ()
native void stop ()

Private Attributes

int width = 0
int height = 0
boolean showing = false

Detailed Description

Definition at line 6 of file Canvas.java.


Constructor & Destructor Documentation

idraw.Canvas.Canvas ( int  width,
int  height 
) [inline]

Definition at line 10 of file Canvas.java.

                                         { 
       this.width = width; 
       this.height = height; 
    }

Member Function Documentation

void idraw.Canvas.close ( ) [inline]

Definition at line 31 of file Canvas.java.

                        { 
       xclose(); 
       showing = false; 
       return ; 
    }

Here is the call graph for this function:

native void idraw.Canvas.copy ( ) [protected]
native void idraw.Canvas.drawCircle ( Posn  p,
int  r,
IColor  c 
)
native void idraw.Canvas.drawDisk ( Posn  p,
int  r,
IColor  c 
)
native void idraw.Canvas.drawLine ( Posn  p0,
Posn  p1,
IColor  c 
)
native void idraw.Canvas.drawRect ( Posn  p,
int  width,
int  height,
IColor  c 
)
native void idraw.Canvas.drawString ( Posn  p,
String  s 
)
void idraw.Canvas.show ( ) [inline]

Definition at line 23 of file Canvas.java.

                       { 
       if (!showing) {
           xshow();
           showing = true; 
       }
       return ; 
    }

Here is the call graph for this function:

native void idraw.Canvas.stop ( ) [protected]

Here is the caller graph for this function:

Here is the caller graph for this function:


Member Data Documentation

int idraw.Canvas.height = 0 [private]

Definition at line 8 of file Canvas.java.

boolean idraw.Canvas.showing = false [private]

Definition at line 21 of file Canvas.java.

int idraw.Canvas.width = 0 [private]

Definition at line 7 of file Canvas.java.


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