|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ch.aplu.turtle.LineRenderer
This class is responsible for drawing the turtle's lines.
| Method Summary | |
protected void |
clipLineTo(double x,
double y)
Does the actual painting for clip mode. |
void |
init(double x,
double y)
Initialisation with coordinates x and
y. |
void |
init(Point2D.Double p)
Same as init(double x, double y), but with a Point2D.Double argument for convenience |
protected void |
internalLineTo(double x,
double y)
Calls the clipLineTo and wrapLineTo methods, according to the turtle's edge behavior. |
void |
lineTo(double x,
double y)
Calls the internalLineTo(x,y), which does the actual painting. |
void |
lineTo(Point2D.Double p)
Calls the internalLineTo(x,y), which does the actual painting. |
protected void |
wrapLineTo(double x,
double y)
Does the actual painting for wrap mode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void init(double x,
double y)
x and
y.
public void init(Point2D.Double p)
protected void internalLineTo(double x,
double y)
clipLineTo(double, double),
wrapLineTo(double, double)
public void lineTo(double x,
double y)
public void lineTo(Point2D.Double p)
protected void clipLineTo(double x,
double y)
internalLineTo(double, double)
protected void wrapLineTo(double x,
double y)
internalLineTo(double, double)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||