| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlab6lib.Turtle
public class Turtle
A class that represents the Turtle from LOGO. Turtle can be told how to move and to rotate. Created: Mon Nov 27 21:08:21 2000
| Constructor Summary | |
|---|---|
Turtle()
Creates a new instance of Turtle.  | 
|
| Method Summary | |
|---|---|
 void | 
addToDrawingCanvas(DrawingCanvas canvas,
                   java.awt.Point startingPoint)
Adds the turtle to the drawing canvas specified at the point specified.  | 
 void | 
moveForward(java.lang.Integer numberOfSteps)
Moves the turtle forward a specific number of steps in the current direction it is facing.  | 
 void | 
rotate(java.lang.Integer degrees)
Rotate the turtle to this degree.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Turtle()
| Method Detail | 
|---|
public void addToDrawingCanvas(DrawingCanvas canvas,
                               java.awt.Point startingPoint)
canvas - The DrawingCanvas to add the turtle to.startingPoint - The point where the turtle should be first located.public void rotate(java.lang.Integer degrees)
degrees - The degree heading to set the turtle facing.public void moveForward(java.lang.Integer numberOfSteps)
numberOfSteps - The number of steps the turtle should move.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||