Class Turtle

java.lang.Object
  extended by Turtle

public class Turtle
extends java.lang.Object

A class representing a Papert-style Turtle that can be moved about a canvas. This class acts as an initializer and wrapper for the JTF Turtle, so that it can be controlled through the BlueJ interface

Version:
Aug 2013
Author:
Joel

Constructor Summary
Turtle()
          Constructor for objects of class Turtle
 
Method Summary
 void forward()
           
 void forward(double distance)
           
 java.awt.Color getColor()
           
 double getDirection()
           
 double getSpeed()
           
 boolean isPenDown()
           
 void left(double angle)
           
 void penDown()
           
 void penUp()
           
 void printText(java.lang.String message)
           
 void right(double angle)
           
 void setDirection(double dir)
           
 void setLocation(double x, double y)
           
 void setPenColor(java.awt.Color color)
           
 void setPenColorByName(java.lang.String color)
           
 void setSpeed(double speed)
           
 
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Turtle

public Turtle()
Constructor for objects of class Turtle

Method Detail

forward

public void forward()

forward

public void forward(double distance)

getColor

public java.awt.Color getColor()

getDirection

public double getDirection()

getSpeed

public double getSpeed()

isPenDown

public boolean isPenDown()

left

public void left(double angle)

penDown

public void penDown()

penUp

public void penUp()

printText

public void printText(java.lang.String message)

right

public void right(double angle)

setDirection

public void setDirection(double dir)

setLocation

public void setLocation(double x,
                        double y)

setPenColor

public void setPenColor(java.awt.Color color)

setPenColorByName

public void setPenColorByName(java.lang.String color)

setSpeed

public void setSpeed(double speed)