TurtleGraphics
Class BackwardPen

java.lang.Object
  extended by TurtleGraphics.AbstractPen
      extended by 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.


Field Summary
 
Fields inherited from class TurtleGraphics.AbstractPen
color, direction, isDown, pad, width, xPos, yPos
 
Constructor Summary
BackwardPen()
           
BackwardPen(SketchPad p)
           
BackwardPen(SketchPadWindow w)
           
 
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
 

Constructor Detail

BackwardPen

public BackwardPen()

BackwardPen

public BackwardPen(SketchPad p)

BackwardPen

public BackwardPen(SketchPadWindow w)
Method Detail

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