|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpturtle.Line
public class Line
Line class, stored by HistoryTurtle.
Field Summary | |
---|---|
int |
drawColor
Colour to draw line in, as a colour created with PApplet.color(int, int, int) . |
int |
fromX
From location in x axis. |
int |
fromY
From location in y axis. |
int |
toX
To location in x axis. |
int |
toY
To location in y axis. |
Constructor Summary | |
---|---|
Line(processing.core.PApplet applet,
int fromX,
int fromY,
int toX,
int toY,
int drawColor)
Create a new line. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int fromX
public int fromY
public int toX
public int toY
public int drawColor
PApplet.color(int, int, int)
.
Constructor Detail |
---|
public Line(processing.core.PApplet applet, int fromX, int fromY, int toX, int toY, int drawColor)
applet
- PApplet to draw to.fromX
- from location in x axis.fromY
- from location in y axis.toX
- to location in x axis.toY
- to location in y axis.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |