TurtleGraphics
Class CommandDrawLine

java.lang.Object
  extended by TurtleGraphics.Command
      extended by TurtleGraphics.CommandDrawLine

public class CommandDrawLine
extends Command

Copyright 2006 by Ken Lambert and Martin Osborne.


Constructor Summary
CommandDrawLine(double y1, double y2, double y3, double y4)
           
 
Method Summary
 void doCommand(java.awt.Graphics2D g, int width, int height)
           
 
Methods inherited from class TurtleGraphics.Command
adjustX, adjustY, round
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandDrawLine

public CommandDrawLine(double y1,
                       double y2,
                       double y3,
                       double y4)
Method Detail

doCommand

public void doCommand(java.awt.Graphics2D g,
                      int width,
                      int height)
Specified by:
doCommand in class Command