|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Framework.Turtle
public class Framework.Turtle
The Turtle class provides support for the rendering of L-Systems. Turtle objects encapsulate various properties of the drawing pen.
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 |
---|
public double heading
public double xPos
public double yPos
public java.awt.Color color
Constructor Detail |
---|
public Framework.Turtle(double xPos, double yPos, double heading, java.awt.Color color)
Method Detail |
---|
public double getXPos()
public double getYPos()
public void setXPos(double x)
public void setYPos(double y)
public double getHeading()
public void setHeading(double h)
public java.awt.Color getColor()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |