TurtleGraphics
Class BackwardPen
java.lang.Object
TurtleGraphics.AbstractPen
TurtleGraphics.BackwardPen
- All Implemented Interfaces:
- Pen
public class BackwardPen
- extends AbstractPen
Copyright 2006 by Ken Lambert and Martin Osborne.
Provides the same behavior as a standard pen, but each move is in the
opposite direction.
Method Summary |
protected void |
drawLine(double x,
double y)
|
void |
drawString(java.lang.String text)
Action: Draws the string at the pen's position. |
Methods inherited from class TurtleGraphics.AbstractPen |
down, home, isDown, move, move, setColor, setDirection, setWidth, toString, turn, turn, up |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BackwardPen
public BackwardPen()
BackwardPen
public BackwardPen(SketchPad p)
BackwardPen
public BackwardPen(SketchPadWindow w)
drawString
public void drawString(java.lang.String text)
- Description copied from interface:
Pen
- Action: Draws the string at the pen's position.
- Specified by:
drawString
in interface Pen
- Specified by:
drawString
in class AbstractPen
drawLine
protected void drawLine(double x,
double y)
- Specified by:
drawLine
in class AbstractPen