diff --git a/collects/teachpack/htdc/Docs/draw.thtml b/collects/teachpack/htdc/Docs/draw.thtml index 40d500f771..34521754d9 100644 --- a/collects/teachpack/htdc/Docs/draw.thtml +++ b/collects/teachpack/htdc/Docs/draw.thtml @@ -21,11 +21,7 @@ import geometry.*; | abstract World onTick() | | boolean drawRect(Posn,int,int,AColor) | | abstract World onKeyEvent(String) | | boolean drawLine(Posn,Posn,AColor) | | abstract boolean draw() | | boolean drawString(Posn,String) | - | abstract boolean erase() | | boolean clearCircle(Posn,int,AColor) | - +-----------------------------------+ | boolean clearDisk(Posn,int,AColor) | - | boolean clearRect(Posn,int,int,AColor)| - | boolean clearLine(Posn,Posn,AColor) | - +---------------------------------------+ + +-----------------------------------+ +---------------------------------------+ @@ -86,12 +82,6 @@ handlers has been called. Its purpose is to present this World graphically on its canvas. If it succeeds, its result is true. -
  • erase(), which is invoked before one of the two event - handlers has been called. Its purpose is to erase this World's - canvas, as much as needed. If it succeeds, its result is true. - Simple erase methods just draw a white rectangle of appropriate width and - height located at the origin. -
  • A program may, in principle, start several instances of (subclasses of) World. If it does, the event handlers are called in a unpredictable @@ -140,23 +130,6 @@ Canvas from p0 to p1 using color p on this Canvas. If it succeeds, it produces true. -
  • clearCircle(p,r,c), which erases a circle from this -Canvas at p with radius r and color -c. If it succeeds, it produces true.
  • - -
  • clearDisk(p,r,c), which erases a disk from -this Canvas at p with radius r and color -c. If it succeeds, it produces true.
  • - -
  • clearRect(p,w,w,c), which draws a solid rectangle from this -Canvas at p with width w, height -h, and color c. The rectangle's lines are parallel to -the canvas's borders. If it succeeds, it produces true.
  • - -
  • clearLine(Posn p0, Posn p1, AColor c), which erases a line from this -Canvas from p0 to p1 using color -c. If it succeeds, it produces true.
  • - The methods may fail due to the unavailability of the physical devices, inappropriate uses, etc. In those cases, they fail with an exception.

    diff --git a/collects/teachpack/htdc/Docs/idraw.thtml b/collects/teachpack/htdc/Docs/idraw.thtml index 17e81ef2a6..7a1a148c57 100644 --- a/collects/teachpack/htdc/Docs/idraw.thtml +++ b/collects/teachpack/htdc/Docs/idraw.thtml @@ -21,12 +21,8 @@ import geometry.*; | abstract void onTick() | | void drawCircle(Posn,int,AColor) | | abstract void onKeyEvent(String)| | void drawDisk(Posn,int,AColor) | | abstract void draw() | | void drawRect(Posn,int,int,AColor) | - | abstract void erase() | | void drawLine(Posn,Posn,AColor) | - +---------------------------------+ | void drawString(Posn,String) | - | void clearCircle(Posn,int,AColor) | - | void clearDisk(Posn,int,AColor) | - | void clearRect(Posn,int,int,AColor)| - | void clearLine(Posn,Posn,AColor) | + +---------------------------------+ | void drawLine(Posn,Posn,AColor) | + | void drawString(Posn,String) | +------------------------------------+