ch.aplu.turtle
Class LineRenderer

java.lang.Object
  extended by ch.aplu.turtle.LineRenderer

public class LineRenderer
extends java.lang.Object

This class is responsible for drawing the turtle's lines.


Method Summary
 void init(double x, double y)
          Initialisation with coordinates x and y.
 void init(java.awt.geom.Point2D.Double p)
          Same as init(double x, double y), but with a Point2D.Double argument for convenience
 void lineTo(double x, double y)
          Calls the internalLineTo(x,y), which does the actual painting.
 void lineTo(java.awt.geom.Point2D.Double p)
          Calls the internalLineTo(x,y), which does the actual painting.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init(double x,
                 double y)
Initialisation with coordinates x and y.


init

public void init(java.awt.geom.Point2D.Double p)
Same as init(double x, double y), but with a Point2D.Double argument for convenience


lineTo

public void lineTo(double x,
                   double y)
Calls the internalLineTo(x,y), which does the actual painting.


lineTo

public void lineTo(java.awt.geom.Point2D.Double p)
Calls the internalLineTo(x,y), which does the actual painting. This method works the same way as lineTo(double x, double y), but is added for convenience.