edu.fcps
Class Turtle
java.lang.Object
edu.fcps.Turtle
- Direct Known Subclasses:
- FlowerTurtle, FlowerTurtle2, PolygonTurtle, SquareTurtle, TwistyTurtle, TwistyTurtle2, TwistyTurtle3, TwistyTurtle4
public abstract class Turtle
- extends java.lang.Object
Constructor Summary |
Turtle()
|
Turtle(double x,
double y,
double heading)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Turtle
public Turtle(double x,
double y,
double heading)
Turtle
public Turtle()
setCrawl
public static void setCrawl(boolean b)
setSpeed
public static void setSpeed(int x)
clear
public static void clear(java.awt.Color c)
clear
public static void clear()
setThickness
public void setThickness(int x)
forward
public void forward(double amount)
back
public void back(double amount)
turnRight
public void turnRight(double degrees)
turnLeft
public void turnLeft(double degrees)
getColor
public java.awt.Color getColor()
setColor
public void setColor(java.awt.Color c)
setColor
public void setColor(int n)
setPenDown
public void setPenDown(boolean x)
drawShape
public abstract void drawShape()
getImage
public static java.awt.Image getImage()
createPanel
public static javax.swing.JPanel createPanel()
createFrame
public static void createFrame()