|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ignotus.aifile.LineVertex
public class LineVertex
Stores a line vertex consisting of a single point.
Field Summary | |
---|---|
static int |
segmentType
path segment type |
Constructor Summary | |
---|---|
LineVertex()
|
|
LineVertex(float x,
float y)
|
Method Summary | |
---|---|
LineVertex |
clone()
|
float[] |
coords()
|
void |
draw(PApplet parent)
Draws a path to the display. |
void |
draw(PGraphics pg)
Draws a path to an offscreen buffer. |
int |
segmentType()
|
void |
setX(float newX)
|
void |
setY(float newY)
|
void |
write(PrintWriter output)
Writes a path segment to file. |
float |
x()
|
float |
y()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int segmentType
Constructor Detail |
---|
public LineVertex(float x, float y)
public LineVertex()
Method Detail |
---|
public float x()
x
in interface Vertex2DINF
public void setX(float newX)
public float y()
y
in interface Vertex2DINF
public void setY(float newY)
public int segmentType()
segmentType
in interface Vertex2DINF
public float[] coords()
coords
in interface Vertex2DINF
public LineVertex clone()
clone
in interface Vertex2DINF
clone
in class Object
public void draw(PApplet parent)
Vertex2DINF
draw
in interface Vertex2DINF
parent
- the PApplet that handles drawingpublic void draw(PGraphics pg)
Vertex2DINF
draw
in interface Vertex2DINF
pg
- a PGraphics instancepublic void write(PrintWriter output)
Vertex2DINF
write
in interface Vertex2DINF
output
- a PrintWriter for output to file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |