Class Framework.Turtle

java.lang.Object
  extended by Framework.Turtle
Enclosing class:
Framework

public class Framework.Turtle
extends java.lang.Object

The Turtle class provides support for the rendering of L-Systems. Turtle objects encapsulate various properties of the drawing pen.

Author:
C. D'Arcy

Field Summary
 java.awt.Color color
          The current color of the line the turtle is drawing
 double heading
          The radian measure of the direction the turtle is facing (0=east)
 double xPos
          The current x-position (column) of the turtle
 double yPos
          The current y-position (row) of the turtle
 
Constructor Summary
Framework.Turtle(double xPos, double yPos, double heading, java.awt.Color color)
           
 
Method Summary
 java.awt.Color getColor()
           
 double getHeading()
           
 double getXPos()
           
 double getYPos()
           
 void setHeading(double h)
           
 void setXPos(double x)
           
 void setYPos(double y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

heading

public double heading
The radian measure of the direction the turtle is facing (0=east)


xPos

public double xPos
The current x-position (column) of the turtle


yPos

public double yPos
The current y-position (row) of the turtle


color

public java.awt.Color color
The current color of the line the turtle is drawing

Constructor Detail

Framework.Turtle

public Framework.Turtle(double xPos,
                        double yPos,
                        double heading,
                        java.awt.Color color)
Method Detail

getXPos

public double getXPos()

getYPos

public double getYPos()

setXPos

public void setXPos(double x)

setYPos

public void setYPos(double y)

getHeading

public double getHeading()

setHeading

public void setHeading(double h)

getColor

public java.awt.Color getColor()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object